Skip to content

Commit 429c4bd

Browse files
authoredApr 29, 2023
Update GitHub Actions CI (#416)
* Update GitHub Actions CI * Use 3.11 for coverage
1 parent 6795c06 commit 429c4bd

File tree

6 files changed

+12
-31
lines changed

6 files changed

+12
-31
lines changed
 

‎.github/workflows/coverage.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
coverage:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v3
1111
- name: Set up Python ${{ matrix.python-version }}
12-
uses: actions/setup-python@v2
12+
uses: actions/setup-python@v4
1313
with:
14-
python-version: 3.7
14+
python-version: 3.11
1515
- name: Install dependencies
1616
run: pip install nox
1717
- name: Test with nox

‎.github/workflows/nox.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,16 @@ jobs:
1515
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1616

1717
steps:
18-
- uses: actions/checkout@v1
18+
- uses: actions/checkout@v3
1919
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
23-
- name: Set Python version for nox
24-
run: echo "PY_VERSION=$(echo ${version})" >> $GITHUB_ENV
25-
shell: bash
26-
env:
27-
version: ${{ matrix.python-version }}
2823
- name: Register Python problem matcher
2924
run: echo "::add-matcher::.github/workflows/matchers/pytest.json"
3025
- name: Install dependencies
3126
run: pip install nox pytest-github-actions-annotate-failures
3227
- name: Test with nox using minimal dependencies
33-
run: nox -e "pytest-${{ env.PY_VERSION }}(all_deps=False)"
28+
run: nox -e "pytest-${{ matrix.python-version }}(all_deps=False)"
3429
- name: Test with nox with all dependencies
35-
run: nox -e "pytest-${{ env.PY_VERSION }}(all_deps=True)"
30+
run: nox -e "pytest-${{ matrix.python-version }}(all_deps=True)"

‎.github/workflows/pre-commit.yml

-14
This file was deleted.

‎.github/workflows/pythonpublish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- name: Set up Python
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.x'
2121
- name: Install dependencies

‎.github/workflows/typeguard.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
typeguard:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v3
1212
- name: Set up Python ${{ matrix.python-version }}
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: "3.11"
1616
- name: Install dependencies

‎noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def pytest_typeguard(session):
1616
session.run("pytest", "--typeguard-packages=adaptive")
1717

1818

19-
@nox.session(python="3.7")
19+
@nox.session(python="3.11")
2020
def coverage(session):
2121
session.install("coverage")
2222
session.install(".[testing,other]")

0 commit comments

Comments
 (0)
Please sign in to comment.