diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ef916af..18c7c253 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, windows-2019] + os: [ubuntu-latest, windows-latest, macos-latest] python-version: ["3.7", "3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v3 @@ -27,7 +27,7 @@ jobs: - name: Run tests on ${{ matrix.os }} run: nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python-version }}" -- --full-trace lint: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python 3.9 @@ -40,7 +40,7 @@ jobs: - name: Lint run: nox --non-interactive --error-on-missing-interpreter --session "lint" docs: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python 3.9 @@ -54,7 +54,7 @@ jobs: run: nox --non-interactive --error-on-missing-interpreter --session "docs" deploy: needs: build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') steps: - uses: actions/checkout@v3 diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py index ce5dd232..6070becf 100644 --- a/tests/test_virtualenv.py +++ b/tests/test_virtualenv.py @@ -502,6 +502,7 @@ def test_create_reuse_oldstyle_virtualenv_environment(make_one): @enable_staleness_check +@pytest.mark.skipif(IS_WINDOWS, reason="Avoid spurious failure on Windows.") def test_create_reuse_python2_environment(make_one): venv, location = make_one(reuse_existing=True, interpreter="2.7")