Skip to content

Commit

Permalink
Use Python 3.11 as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Feb 26, 2023
1 parent 9fdd170 commit aa578a7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 31 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'

- name: Cache pip
uses: actions/cache@v3
Expand All @@ -39,11 +39,7 @@ jobs:
key: ${{ runner.os }}-python-${{ matrix.python-version }}-codeql-${{ hashFiles('requirements*.txt') }}
restore-keys: |
${{ runner.os }}-python-${{ matrix.python-version }}-codeql-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-${{ matrix.python-version }}-tests-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-${{ matrix.python-version }}-release-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-${{ matrix.python-version }}-codeql-
${{ runner.os }}-python-${{ matrix.python-version }}-tests-
${{ runner.os }}-python-${{ matrix.python-version }}-release-
${{ runner.os }}-python
${{ runner.os }}-
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,19 @@ jobs:
with:
fetch-depth: 0

- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-3.10-release-${{ hashFiles('requirements*.txt') }}
key: ${{ runner.os }}-python-3.11-release-${{ hashFiles('requirements*.txt') }}
restore-keys: |
${{ runner.os }}-python-3.10-release-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-3.10-tests-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-3.10-codeql-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-3.10-release-
${{ runner.os }}-python-3.10-tests-
${{ runner.os }}-python-3.10-codeql-
${{ runner.os }}-python-3.11-release-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-3.11-release-
${{ runner.os }}-python
${{ runner.os }}-
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,19 @@ jobs:
with:
fetch-depth: 0

- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-3.10-release-${{ hashFiles('requirements*.txt') }}
key: ${{ runner.os }}-python-3.11-release-${{ hashFiles('requirements*.txt') }}
restore-keys: |
${{ runner.os }}-python-3.10-release-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-3.10-tests-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-3.10-codeql-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-3.10-release-
${{ runner.os }}-python-3.10-tests-
${{ runner.os }}-python-3.10-codeql-
${{ runner.os }}-python-3.11-release-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-3.11-release-
${{ runner.os }}-python
${{ runner.os }}-
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.11', pypy-3.7, pypy-3.9]
python-version: ['3.7', pypy-3.7, pypy-3.9]
os: [ubuntu-latest]
# run only limited set of tests because it takes too long
mark: [important]
include:
- os: macos-latest
mark: important
python-version: '3.10'
python-version: '3.11'
- os: windows-latest
mark: important
python-version: '3.10'
python-version: '3.11'
# run all the tests only on latest python version
- os: ubuntu-latest
mark: all
python-version: '3.10'
python-version: '3.11'

steps:
- name: Checkout code
Expand All @@ -54,11 +54,7 @@ jobs:
key: ${{ runner.os }}-python-${{ matrix.python-version }}-tests-${{ hashFiles('requirements*.txt') }}
restore-keys: |
${{ runner.os }}-python-${{ matrix.python-version }}-tests-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-${{ matrix.python-version }}-codeql-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-${{ matrix.python-version }}-release-${{ hashFiles('requirements*.txt') }}
${{ runner.os }}-python-${{ matrix.python-version }}-tests-
${{ runner.os }}-python-${{ matrix.python-version }}-codeql-
${{ runner.os }}-python-${{ matrix.python-version }}-release-
${{ runner.os }}-python
${{ runner.os }}-
Expand Down

0 comments on commit aa578a7

Please sign in to comment.