Cleanup CI for Python 3.11 support (#248)
GitOrigin-RevId: d461041b3d9136de68624a312c9db6e4e539895e
Change-Id: I1a7846f5bc04f9eb3310e0da64155a87b47f6fcc
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 @@
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 @@
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 @@
- 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 @@
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 @@
shell: bash
run: |
poetry run pytest -q tests
- continue-on-error: ${{ startsWith(matrix.python-version, '3.11') }}