Skip to content

Commit

Permalink
Add testing with pip built as a zipapp to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmoore committed Jul 12, 2022
1 parent a8cb4c9 commit e7b077a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,35 @@ jobs:
env:
TEMP: "R:\\Temp"

tests-zipapp:
name: tests / zipapp
runs-on: ubuntu-latest

needs: [pre-commit, packaging, determine-changes]
if: >-
needs.determine-changes.outputs.tests == 'true' ||
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install Ubuntu dependencies
run: sudo apt-get install bzr

- run: pip install nox 'virtualenv<20' 'setuptools != 60.6.0'

# Main check
- name: Run integration tests
run: >-
nox -s test-3.10 --
-m integration
--verbose --numprocesses auto --showlocals
--durations=5
--use-zipapp
# TODO: Remove this when we add Python 3.11 to CI.
tests-importlib-metadata:
name: tests for importlib.metadata backend
Expand Down

0 comments on commit e7b077a

Please sign in to comment.