Skip to content

Commit f688d2e

Browse files
committed
ci: add Python 3.10
1 parent a16d1f1 commit f688d2e

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/tests.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ jobs:
77
fail-fast: false
88
matrix:
99
os: [macos-latest, ubuntu-latest, windows-latest]
10-
name: Tests on ${{ matrix.os }}
10+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
11+
name: Tests on ${{ matrix.os }} with Python ${{ matrix.python-version }}
1112
steps:
1213
- uses: actions/checkout@v2
1314
with:
1415
path: main
1516

1617
- uses: actions/setup-python@v2
1718
with:
18-
python-version: '3.x'
19+
python-version: ${{ matrix.python-version }}
1920
architecture: x64
2021

2122
- name: Checkout Austin development branch
@@ -34,7 +35,7 @@ jobs:
3435
- name: Compile Austin on Windows
3536
run: |
3637
cd $env:GITHUB_WORKSPACE/austin
37-
gcc.exe -O3 -o src/austin.exe src/*.c -lpsapi -Wall -Os -s
38+
gcc.exe -O3 -o src/austin.exe src/*.c -lpsapi -lntdll -Wall -Os -s
3839
if: startsWith(matrix.os, 'windows')
3940

4041
- name: Compile Austin on macOS
@@ -66,10 +67,10 @@ jobs:
6667
nox
6768
if: "startsWith(matrix.os, 'windows')"
6869

69-
- name: Publish coverage metrics
70-
run: |
71-
cd $GITHUB_WORKSPACE/main
72-
nox -rs coverage
73-
if: startsWith(matrix.os, 'ubuntu')
74-
env:
75-
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
70+
# - name: Publish coverage metrics
71+
# run: |
72+
# cd $GITHUB_WORKSPACE/main
73+
# nox -rs coverage
74+
# if: startsWith(matrix.os, 'ubuntu')
75+
# env:
76+
# CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

noxfile.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ---- Configuration ----
99

1010

11-
SUPPORTED_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
11+
SUPPORTED_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
1212

1313
PYTEST_OPTIONS = ["-vvvs", "--cov=austin_tui", "--cov-report", "term-missing"]
1414

@@ -28,6 +28,7 @@ def install_with_constraints(session, *args, **kwargs):
2828
"export",
2929
"--dev",
3030
"--format=requirements.txt",
31+
"--without-hashes",
3132
f"--output={requirements.name}",
3233
external=True,
3334
)
@@ -43,7 +44,7 @@ def install_with_constraints(session, *args, **kwargs):
4344
# session.run("poetry", "run", "python", "-m", "pytest", *PYTEST_OPTIONS)
4445

4546

46-
@nox.session(python=SUPPORTED_PYTHON_VERSIONS)
47+
@nox.session(python=[SUPPORTED_PYTHON_VERSIONS])
4748
def lint(session):
4849
session.install(
4950
"flake8",
@@ -55,7 +56,7 @@ def lint(session):
5556
session.run("flake8", *LINT_LOCATIONS, "--exclude", *LINT_EXCLUDES)
5657

5758

58-
@nox.session(python=SUPPORTED_PYTHON_VERSIONS)
59+
@nox.session(python="3.7")
5960
def mypy(session):
6061
session.install("mypy")
6162
session.run("mypy", "--show-error-codes", *MYPY_LOCATIONS)

0 commit comments

Comments
 (0)