Skip to content

Move the build job out of the publish job into the ci-release job. #6

Move the build job out of the publish job into the ci-release job.

Move the build job out of the publish job into the ci-release job. #6

Workflow file for this run

name: Test and Build
# Run the code checks and CI pytest workflow on
# - push to `main` or `dev` branches, or
# - manually triggered from github Actions tab.
# Build and publish to test.pypi on
# - push to `main` branch.
on:
push:
branches: [main, dev]
workflow_dispatch:
jobs:
tests:
name: CI tests
uses: glenn20/python-ci/.github/workflows/test.yaml@main
with: # A short test matrix for fast testing of commits
os: '["ubuntu-latest"]'
python-version: '["3.9", "3.13"]'
build:
name: Build
uses: glenn20/python-ci/.github/workflows/build.yaml@main
publish-test:
name: Publish to test.pypi
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: ./.github/workflows/publish.yaml
with:
pypi: test.pypi
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing!