Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows/main.yml: Add integration testing with setuptools #67

Merged
merged 1 commit into from
Nov 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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