diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 47f6151..dc2b0f6 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -4,7 +4,7 @@ on: [push] jobs: pypi: - runs-on: windows-2019 + runs-on: windows-2022 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fc173ba..bf0a674 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,35 +4,50 @@ on: [push, pull_request] jobs: linter: - runs-on: windows-2019 + runs-on: windows-2022 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - run: pip install tox - run: tox -e lint-check test: - runs-on: windows-2019 + runs-on: windows-2022 strategy: matrix: - python: ['3.8', '3.9', '3.10', '3.11', '3.12'] + # TODO + # python: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python: ['3.10'] steps: - uses: actions/checkout@v4 - # Virtual network sound card for Microsoft Windows - - name: Install Scream + # TODO + # - run: net start audiosrv + # https://github.com/actions/runner-images/issues/2528#issuecomment-1050295010 + - name: Disable time sync with Hyper-V & setting system date time (#1573) + # TODO: Remove workaround of setting the time when virtual audio device certificate is valid again, refs: + # https://github.com/duncanthrax/scream/issues/202 + run: | + Set-Service -Name vmictimesync -Status stopped -StartupType disabled + Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\W32Time\Parameters -Name 'Type' -Value 'NoSync' + net stop w32time; Set-Date (Get-Date "2023-07-04 12:00:00") + - name: Install virtual audio device (Scream) + env: + VERSION: '4.0' shell: powershell run: | - Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/3.8/Scream3.8.zip -OutFile Scream3.8.zip - Expand-Archive -Path Scream3.8.zip -DestinationPath Scream - Import-Certificate -FilePath Scream\Install\driver\x64\Scream.cat -CertStoreLocation Cert:\LocalMachine\TrustedPublisher + Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/${{ env.VERSION }}/Scream${{ env.VERSION }}.zip -OutFile Scream${{ env.VERSION }}.zip + Expand-Archive -Path Scream${{ env.VERSION }}.zip -DestinationPath Scream + # TODO + Import-Certificate -FilePath Scream\Install\driver\x64\scream.cat -CertStoreLocation Cert:\LocalMachine\TrustedPublisher Scream\Install\helpers\devcon-x64.exe install Scream\Install\driver\x64\Scream.inf *Scream - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python }} - - run: pip install tox - - run: tox -e py - - name: Run Coverage - if: matrix.python == '3.10' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: tox -e coveralls + # TODO + # - uses: actions/setup-python@v5 + # with: + # python-version: ${{ matrix.python }} + # - run: pip install tox + # - run: tox -e py + # - name: Run Coverage + # if: matrix.python == '3.10' + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: tox -e coveralls