Skip to content

Commit

Permalink
.github/workflows/main.yml: Add integration testing with setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe authored and FFY00 committed Nov 9, 2021
1 parent 5c836a5 commit 9e98a85
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,40 @@ jobs:
- name: Run tests
run: tox

ci_setuptools:
# Integration testing with setuptools
strategy:
matrix:
python: [3.9]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
env:
SETUPTOOLS_USE_DISTUTILS: local
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: |
python -m pip install tox
- name: Check out pypa/setuptools
uses: actions/checkout@v2
with:
repository: pypa/setuptools
ref: main
path: integration/setuptools
- name: Replace vendored distutils
run: |
cd integration/setuptools/setuptools
rm -rf _distutils
cp -rp ../../../distutils _distutils
- name: Run setuptools tests
run: |
cd integration/setuptools
tox
release:
needs: test
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 9e98a85

Please sign in to comment.