galaxyproject/gravity (opens in new tab)
4 workflows
Triggers
push pull_request
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| Test | ubuntu-latest | 5 | actions/checkout@v6 actions/setup-python@v6 |
Raw YAML
name: Lint
on: [push, pull_request]
concurrency:
group: py-lint-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.14']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Run linting
run: tox -e lint
- name: Run mypy
run: tox -e mypy
Last fetched:
Package Test
.github/workflows/package.yaml (opens in new tab)Triggers
push pull_request
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| Package Test | ubuntu-latest | 4 | actions/checkout@v6 actions/setup-python@v6 |
Raw YAML
name: Package Test
on: [push, pull_request]
concurrency:
group: package-${{ github.ref }}
cancel-in-progress: true
jobs:
package:
name: Package Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.14']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install --upgrade twine wheel
- name: Create and check packages
run: |
python3 setup.py sdist bdist_wheel
twine check dist/*
ls -l dist
Last fetched:
Publish gravity to PyPI
.github/workflows/publish.yaml (opens in new tab)Triggers
release push
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ubuntu-latest | 6 | actions/checkout@v6 actions/setup-python@v6 pypa/gh-action-pypi-publish@master pypa/gh-action-pypi-publish@master |
Raw YAML
name: Publish gravity to PyPI
on:
release:
types: [created]
push:
tags:
- '*'
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.9
uses: actions/setup-python@v6
with:
python-version: 3.9
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install --upgrade twine wheel
- name: Create and check packages
run: |
python3 setup.py sdist bdist_wheel
twine check dist/*
ls -l dist
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'release' && github.event.action == 'created'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
Last fetched:
Triggers
push pull_request
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| Test | ubuntu-latest | 6 | actions/checkout@v6 actions/setup-python@v6 codecov/codecov-action@v5 |
Raw YAML
name: Test
on: [push, pull_request]
concurrency:
group: py-test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.14']
galaxy-branch: ['release_24.0', 'dev']
exclude:
# either the release existed before the python release or some expensive-to-build wheels (e.g. numpy) don't
# exist for the pinned package version / python version combo
- python-version: '3.14'
galaxy-branch: 'release_24.0'
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Precreate virtualenv
run: python -m venv tests/galaxy_venv
- name: Install tox
run: pip install tox
- name: Run tests
run: tox -e test
env:
GRAVITY_TEST_GALAXY_BRANCH: ${{ matrix.galaxy-branch }}
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v5
Last fetched: