Skip to content

Commit

Permalink
Use checkout instead of SDist
Browse files Browse the repository at this point in the history
The Sdist is lacking tox.ini :(
  • Loading branch information
hynek committed Mar 27, 2024
1 parent a989d9d commit e235271
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci-supported-pythons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,20 @@ jobs:
name: Packages
path: dist

- name: Prepare tests & config
# We have to check the project out because it doesn't include tox.ini in
# its SDist. If you include it, you can just unpack your SDist instead.
- uses: actions/checkout@v4
with:
repository: pypa/sampleproject

- name: Prepare for tox
run: |
# We use tox together with the fast tox-uv plugin.
python -Im pip install tox-uv
# Unpack SDist for tests & config files.
tar xf dist/*.tar.gz --strip-components=1
# Ensure tests run against wheel.
rm -rf src
- run:
tree .
python -Im tox run --installpkg dist/*.whl -f py$(echo ${{ matrix.python-version }} | tr -d .)
- run: python -Im tox run --installpkg dist/*.whl -f py$(echo ${{ matrix.python-version }} | tr -d .)

...

0 comments on commit e235271

Please sign in to comment.