diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7413e70..4dc9a4e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,8 @@ 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: @@ -15,7 +16,7 @@ jobs: - uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: ${{ matrix.python-version }} architecture: x64 - name: Checkout Austin development branch @@ -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 @@ -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}} diff --git a/noxfile.py b/noxfile.py index 8f8ede4..1af2003 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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"] @@ -28,6 +28,7 @@ def install_with_constraints(session, *args, **kwargs): "export", "--dev", "--format=requirements.txt", + "--without-hashes", f"--output={requirements.name}", external=True, ) @@ -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", @@ -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)