| 1 |
name: CI |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
push: |
| 6 |
branches: [main] |
| 7 |
tags: |
| 8 |
- "*" |
| 9 |
workflow_dispatch: |
| 10 |
schedule: |
| 11 |
# Run every Sunday at 04:53 UTC |
| 12 |
- cron: 53 4 * * 0 |
| 13 |
|
| 14 |
concurrency: |
| 15 |
group: ${{ github.workflow }}-${{ github.ref }} |
| 16 |
cancel-in-progress: true |
| 17 |
|
| 18 |
permissions: {} |
| 19 |
|
| 20 |
jobs: |
| 21 |
tests: |
| 22 |
runs-on: ubuntu-latest |
| 23 |
steps: |
| 24 |
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 25 |
with: |
| 26 |
fetch-depth: 0 |
| 27 |
persist-credentials: false |
| 28 |
|
| 29 |
- name: Set up Python |
| 30 |
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 |
| 31 |
with: |
| 32 |
python-version: 3.14 |
| 33 |
|
| 34 |
- name: Install |
| 35 |
run: | |
| 36 |
python -m pip install pip -U |
| 37 |
pip install .[test] |
| 38 |
|
| 39 |
- name: Run tests |
| 40 |
run: pytest astropy_sphinx_theme |