Skip to content
Snippets Groups Projects
Commit a7ff7b4d authored by Martin Larralde's avatar Martin Larralde
Browse files

Test source distribution in `package.yml` Actions before deploying to PyPI

parent 491b10b5
No related branches found
No related tags found
No related merge requests found
......@@ -228,12 +228,35 @@ jobs:
name: dist
path: dist/*
test-sdist:
runs-on: ubuntu-latest
name: Test source distribution
needs:
- sdist
steps:
- name: Setup Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Download built wheels
uses: actions/download-artifact@v2
with:
name: dist
path: dist/
- name: Update pip to latest version
run: python -m pip install -U pip setuptools wheel
- name: Install built wheel
run: python -m pip install --no-binary pyfastani --find-links=dist pyfastani
- name: Run tests without coverage
run: python -m unittest pyfastani.tests -vv
upload:
environment: PyPI
runs-on: ubuntu-latest
name: Upload
needs:
- sdist
- test-sdist
- wheel-linux
- test-linux
- wheel-osx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment