Skip to content

Commit

Permalink
fix on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Nov 16, 2023
1 parent 6c19b91 commit ada9f37
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,28 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9", "pypy3.10" ]
platform: [
{ os: 'ubuntu-latest', python-version: '3.8' },
{ os: 'ubuntu-latest', python-version: '3.9' },
{ os: 'ubuntu-latest', python-version: '3.10' },
{ os: 'ubuntu-latest', python-version: '3.11' },
{ os: 'ubuntu-latest', python-version: 'pypy3.8' },
{ os: 'ubuntu-latest', python-version: 'pypy3.9' },
{ os: 'ubuntu-latest', python-version: 'pypy3.10' },
{ os: 'macos-latest', python-version: '3.8' },
{ os: 'macos-latest', python-version: '3.9' },
{ os: 'macos-latest', python-version: '3.10' },
{ os: 'macos-latest', python-version: '3.11' },
{ os: 'macos-latest', python-version: 'pypy3.8' },
{ os: 'macos-latest', python-version: 'pypy3.9' },
{ os: 'macos-latest', python-version: 'pypy3.10' },
{ os: 'windows-latest', python-version: '3.8' },
{ os: 'windows-latest', python-version: '3.9' },
{ os: 'windows-latest', python-version: '3.10' },
{ os: 'windows-latest', python-version: '3.11' },
]
# https://endoflife.date/python
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v3

Expand All @@ -36,10 +54,10 @@ jobs:
- name: Install poetry
run: pipx install poetry

- name: Setup Python ${{ matrix.python-version }} on ${{ matrix.os }}
- name: Setup Python ${{ matrix.platform.python-version }} on ${{ matrix.platform.os }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.platform.python-version }}
cache: 'poetry'

- name: Install dependencies
Expand All @@ -54,7 +72,7 @@ jobs:
run: poetry run pytest -v -rs tests --runslow --cov=./ --cov-report=xml

- name: Upload coverage to Codecov
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
if: matrix.platform.python-version == '3.11' && matrix.platform.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit ada9f37

Please sign in to comment.