Triggers
push pull_request
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| test | ubuntu-latest | 8 | actions/checkout@v4 actions/setup-python@v4 |
Raw YAML
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
pip install -e .
- name: Run black
run: black --check .
- name: Run isort
run: isort --check-only --diff .
- name: Run ruff
run: ruff check .
- name: Run mypy
run: mypy .
- name: Run pytest
run: pytest
Last fetched:
Deploy to PyPI
.github/workflows/deploy.yml (opens in new tab)Triggers
push
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| deploy | ubuntu-latest | 6 | actions/checkout@v4 actions/setup-python@v4 pypa/gh-action-pypi-publish@release/v1 |
Raw YAML
name: Deploy to PyPI
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
if: github.repository_owner == 'galaxyproject'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Check distribution
run: twine check dist/*
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Last fetched: