Skip to content

Feature/pypi release #1

Feature/pypi release

Feature/pypi release #1

Workflow file for this run

name: PyPI release
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash
jobs:
tests:

Check failure on line 14 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / PyPI release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
needs:
- build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
timeout-minutes: 60
environment:
name: testpypi
url: https://test.pypi.org/p/quadra
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- name: Publish on pypi
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry publish --build
# - name: Download all the dists
# uses: actions/download-artifact@v3
# with:
# name: python-package-distributions
# path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/