From d461041b3d9136de68624a312c9db6e4e539895e Mon Sep 17 00:00:00 2001 From: Bartosz Sokorski Date: Mon, 14 Nov 2022 03:15:37 +0100 Subject: [PATCH] Cleanup CI for Python 3.11 support (#248) --- .github/workflows/tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 994634d..ecf8a7b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} @@ -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 @@ -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 @@ -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 @@ -84,4 +85,3 @@ jobs: shell: bash run: | poetry run pytest -q tests - continue-on-error: ${{ startsWith(matrix.python-version, '3.11') }}