Skip to content

argparse_typed.py: Minor refactor to improve clarity and maintainabil… #23

argparse_typed.py: Minor refactor to improve clarity and maintainabil…

argparse_typed.py: Minor refactor to improve clarity and maintainabil… #23

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/check-test-build.yaml@v1
with: # A short test matrix for fast testing of commits
os: '["ubuntu-latest"]'
python-version: '["3.9", "3.13"]'
publish-test:
name: Publish to test.pypi
needs: tests
if: |
github.event_name == 'workflow_dispatch' ||
(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!