1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
name: Extras
on:
push:
branches:
- master
pull_request:
branches:
- master
# Cancel previous CI runs when new commits are added to a PR.
concurrency:
group: ${{ github.head_ref || github.run_id }}-extras
cancel-in-progress: true
jobs:
build_docs_linkcheck:
name: Docs / Linkcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Tools
run: |
sudo apt-get install -y graphviz
pip install -U tox
# NOTE: the RTD PR build is enabled to view docs, this tests with nitpicky
# flags that will catch non-critical warnings.
- name: Test Docs
run: |
tox -e docs
- name: Test Linkcheck
run: |
tox -e linkcheck
# TODO: this will become `lint` which will have more checks.
build_flake8:
name: Flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Tools
run: |
pip install -U tox
- name: Test Flake8
run: |
tox -e flake8
build_dist:
name: Packaging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Use minimum version of python needed for this project in setup.cfg.
- name: Use Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install Tools
run: |
pip install -U tox
- name: Test Packaging
run: |
tox -e dist
|