Skip to content

Commit

Permalink
ci: Use latest GHA runners and include macOS (#613)
Browse files Browse the repository at this point in the history
* Use latest GHA runners and add macOS

* Fix test failure on Windows with reusing python 2 env
  • Loading branch information
FollowTheProcess committed May 4, 2022
1 parent 1348a41 commit b73b190
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/test_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit b73b190

Please sign in to comment.