Skip to content

Fixed CI and added test release workflow (#2) #1

Fixed CI and added test release workflow (#2)

Fixed CI and added test release workflow (#2) #1

Workflow file for this run

name: Release a new version in PyPI
on:
push:
branches:
- "preproduction"
jobs:
publish:

Check failure on line 9 in .github/workflows/test_release.yml

View workflow run for this annotation

GitHub Actions / Release a new version in PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/test_release.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
name: >-
Publish Python 🐍 distribution 📦 to PyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://test.pypi.org/p/mini-face-oxidized
permissions:
id-token: write
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Download all the wheels
uses: actions/download-artifact@v4
with:
name: wheels
path: dist/
- name: Install dependencies
run: |
pip install twine
- name: Publish distribution to Test PyPI
run: |
twine upload -r testpypi dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_KEY }}