Skip to content

Commit

Permalink
Merge pull request #71 from exonet/rja/add-3.11-support
Browse files Browse the repository at this point in the history
Add Python 3.11 support
  • Loading branch information
Brianvanwessel authored Aug 30, 2023
2 parents 90db67a + 13e4682 commit 06765a5
Show file tree
Hide file tree
Showing 10 changed files with 439 additions and 280 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Set pip cache dir
id: pip-cache
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- 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: Install Poetry
uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b #1.3.4
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install workflow dependencies
run: |
pip install -r .github/workflows/requirements.txt
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: Install dependencies
run: poetry install --no-interaction --no-root
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pip==23.2.1
poetry==1.5.1
poetry==1.6.1
4 changes: 2 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Check licenses
id: licenses
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semgrep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Semgrep
on:
push:
branches:
- main
- master
schedule:
- cron: '20 6 * * *'
pull_request:
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ on:

jobs:
pytest:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.7","3.8","3.9","3.10"]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python }}
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
python-version: ${{ matrix.python-version }}

- name: Set pip cache dir
id: pip-cache
Expand All @@ -38,7 +38,16 @@ jobs:
restore-keys: |
pip-${{ runner.os }}-v3-${{ steps.python.outputs.python-version }}-
- name: Install Poetry 1.5.1
if: ${{ matrix.python-version == '3.7' }}
uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b #1.3.4
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install workflow dependencies
if: ${{ matrix.python-version != '3.7' }}
run: |
pip install -r .github/workflows/requirements.txt
poetry config virtualenvs.create true
Expand All @@ -62,7 +71,7 @@ jobs:
- name: Upload coverage artifact
uses: actions/upload-artifact@v3
with:
name: coverage-${{ matrix.python }}-${{ matrix.os }}
name: coverage-${{ matrix.python-version }}
path: .coverage

coverage:
Expand All @@ -75,11 +84,11 @@ jobs:
- name: Download coverage data
uses: actions/download-artifact@v3

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

- name: Set pip cache dir
id: pip-cache
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/typing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ on:

jobs:
mypy:
name: mypy on Python ${{ matrix.python }}
name: mypy on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.7", "3.10"]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python }}
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
python-version: ${{ matrix.python-version }}

- name: Set pip cache dir
id: pip-cache
Expand All @@ -38,7 +38,16 @@ jobs:
restore-keys: |
pip-${{ runner.os }}-v3-${{ steps.python.outputs.python-version }}-
- name: Install Poetry 1.5.1
if: ${{ matrix.python-version == '3.7' }}
uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b #1.3.4
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install workflow dependencies
if: ${{ matrix.python-version != '3.7' }}
run: |
pip install -r .github/workflows/requirements.txt
poetry config virtualenvs.create true
Expand Down
Loading

0 comments on commit 06765a5

Please sign in to comment.