Skip to content

Commit

Permalink
Cleanup CI for Python 3.11 support (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
Secrus committed Nov 14, 2022
1 parent 66903fc commit d461041
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Expand Up @@ -19,6 +19,7 @@ jobs:
with:
python-version: 3.x
- uses: pre-commit/action@v2.0.3

Tests:
needs: Linting
name: ${{ matrix.os }} / ${{ matrix.python-version }}
Expand All @@ -27,10 +28,7 @@ jobs:
fail-fast: false
matrix:
os: [Ubuntu, MacOS, Windows]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11.0-rc - 3.11.0"]
exclude:
- python-version: "3.11.0-rc - 3.11.0"
os: MacOS
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -51,6 +49,7 @@ jobs:
- name: Install Poetry
shell: bash
run: curl -fsSL https://install.python-poetry.org | python - -y --version 1.2.2

- name: Update PATH
if: ${{ matrix.os != 'Windows' }}
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
Expand All @@ -59,10 +58,12 @@ jobs:
if: ${{ matrix.os == 'Windows' }}
shell: bash
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH

- name: Configure Poetry
shell: bash
run: |
poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v3
id: cache
Expand All @@ -84,4 +85,3 @@ jobs:
shell: bash
run: |
poetry run pytest -q tests
continue-on-error: ${{ startsWith(matrix.python-version, '3.11') }}

0 comments on commit d461041

Please sign in to comment.