diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6382ce4..9b7f880 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,25 +1,25 @@ -name: Pytest +name: test on: [push] jobs: - build: - runs-on: ubuntu-latest - container: - image: scottyhardy/docker-wine:latest - env: - # USER_NAME: runner - # USER_UID: ${USER_UID:-1010} - # USER_GID: ${USER_GID:-"${USER_UID}"} - # USER_HOME: ${USER_HOME:-/home/"${USER_NAME}"} - # USER_PASSWD: ${USER_PASSWD:-"$(openssl passwd -1 -salt "$(openssl rand -base64 6)" "${USER_NAME}")"} - # USER_SUDO: ${USER_SUDO:-yes} - RDP_SERVER: yes - # RUN_AS_ROOT: ${RUN_AS_ROOT:-no} - # FORCED_OWNERSHIP: ${FORCED_OWNERSHIP:-no} - # TZ: ${TZ:-UTC} - # USE_XVFB: ${USE_XVFB:-no} - DUMMY_PULSEAUDIO: yes # ${DUMMY_PULSEAUDIO:-no} + pytest: + # runs-on: ubuntu-latest + # container: + # image: scottyhardy/docker-wine:latest + # env: + # # USER_NAME: runner + # # USER_UID: ${USER_UID:-1010} + # # USER_GID: ${USER_GID:-"${USER_UID}"} + # # USER_HOME: ${USER_HOME:-/home/"${USER_NAME}"} + # # USER_PASSWD: ${USER_PASSWD:-"$(openssl passwd -1 -salt "$(openssl rand -base64 6)" "${USER_NAME}")"} + # # USER_SUDO: ${USER_SUDO:-yes} + # RDP_SERVER: yes + # # RUN_AS_ROOT: ${RUN_AS_ROOT:-no} + # # FORCED_OWNERSHIP: ${FORCED_OWNERSHIP:-no} + # # TZ: ${TZ:-UTC} + # # USE_XVFB: ${USE_XVFB:-no} + # DUMMY_PULSEAUDIO: yes # ${DUMMY_PULSEAUDIO:-no} steps: - uses: actions/checkout@v4 @@ -34,20 +34,20 @@ jobs: tag: "4.3.0" fileName: "gbdk-linux64.tar.gz" extract: true - # - uses: pyvista/setup-headless-display-action@v2 - # - name: Install wine - # run: | - # sudo dpkg --add-architecture i386 - # sudo mkdir -pm755 /etc/apt/keyrings - # sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key - # sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources - # sudo apt update - # sudo apt install -y --install-recommends winehq-stable winbind - # wine --version - # - name: Install wine-mono - # run: | - # wget https://github.com/madewokherd/wine-mono/releases/download/wine-mono-9.0.0/wine-mono-9.0.0-x86.msi - # WINEDEBUG=fixme-all WINEDLLOVERRIDES=mscoree=d wine wine-mono-9.0.0-x86.msi + - uses: pyvista/setup-headless-display-action@v2 + - name: Install wine + run: | + sudo dpkg --add-architecture i386 + sudo mkdir -pm755 /etc/apt/keyrings + sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key + sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources + sudo apt update + sudo apt install -y --install-recommends winehq-stable winbind + wine --version + - name: Install wine-mono + run: | + wget https://github.com/madewokherd/wine-mono/releases/download/wine-mono-9.0.0/wine-mono-9.0.0-x86.msi + WINEDEBUG=fixme-all WINEDLLOVERRIDES=mscoree=d wine wine-mono-9.0.0-x86.msi - name: pip install shell: bash run: |