Skip to content

dev only with latest Python version #191

dev only with latest Python version

dev only with latest Python version #191

Workflow file for this run

name: CI/CD
on: push
jobs:
build-wheel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- run: pip install --disable-pip-version-check -r requirements.txt
- run: pycodestyle tnz/*.py
- run: python -m build --wheel --outdir dist/
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
test-wheel:
needs: build-wheel
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install --disable-pip-version-check -r requirements.txt
- uses: actions/download-artifact@v4
- run: pip install $(dist/*.whl)
- run: pytest
deploy-pypi:
if: startsWith(github.ref, 'refs/tags')
needs: build

Check failure on line 44 in .github/workflows/pipeline.yml

View workflow run for this annotation

GitHub Actions / CI/CD

Invalid workflow file

The workflow is not valid. .github/workflows/pipeline.yml (Line: 44, Col: 12): Job 'deploy-pypi' depends on unknown job 'build'.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- run: pip install --disable-pip-version-check -r requirements.txt
- uses: actions/download-artifact@v4
- name: Publish
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload --non-interactive -u __token__ dist/*