Skip to content

Commit

Permalink
ci: add Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Oct 20, 2021
1 parent a16d1f1 commit f688d2e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
name: Tests on ${{ matrix.os }}
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
name: Tests on ${{ matrix.os }} with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
with:
path: main

- uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: ${{ matrix.python-version }}
architecture: x64

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

- name: Compile Austin on macOS
Expand Down Expand Up @@ -66,10 +67,10 @@ jobs:
nox
if: "startsWith(matrix.os, 'windows')"

- name: Publish coverage metrics
run: |
cd $GITHUB_WORKSPACE/main
nox -rs coverage
if: startsWith(matrix.os, 'ubuntu')
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
# - name: Publish coverage metrics
# run: |
# cd $GITHUB_WORKSPACE/main
# nox -rs coverage
# if: startsWith(matrix.os, 'ubuntu')
# env:
# CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
7 changes: 4 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# ---- Configuration ----


SUPPORTED_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
SUPPORTED_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]

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

Expand All @@ -28,6 +28,7 @@ def install_with_constraints(session, *args, **kwargs):
"export",
"--dev",
"--format=requirements.txt",
"--without-hashes",
f"--output={requirements.name}",
external=True,
)
Expand All @@ -43,7 +44,7 @@ def install_with_constraints(session, *args, **kwargs):
# session.run("poetry", "run", "python", "-m", "pytest", *PYTEST_OPTIONS)


@nox.session(python=SUPPORTED_PYTHON_VERSIONS)
@nox.session(python=[SUPPORTED_PYTHON_VERSIONS])
def lint(session):
session.install(
"flake8",
Expand All @@ -55,7 +56,7 @@ def lint(session):
session.run("flake8", *LINT_LOCATIONS, "--exclude", *LINT_EXCLUDES)


@nox.session(python=SUPPORTED_PYTHON_VERSIONS)
@nox.session(python="3.7")
def mypy(session):
session.install("mypy")
session.run("mypy", "--show-error-codes", *MYPY_LOCATIONS)
Expand Down

0 comments on commit f688d2e

Please sign in to comment.