Browse Source

ci: Use latest GHA runners and include macOS (#613)

* Use latest GHA runners and add macOS

* Fix test failure on Windows with reusing python 2 env
pull/618/head
Tom Fleet 2 months ago committed by GitHub
parent
commit
b73b1900b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .github/workflows/ci.yml
  2. 1
      tests/test_virtualenv.py

8
.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

1
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")

Loading…
Cancel
Save