| 1 |
name: Build |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- master |
| 6 |
pull_request: |
| 7 |
branches: |
| 8 |
- master |
| 9 |
jobs: |
| 10 |
build: |
| 11 |
name: Build |
| 12 |
runs-on: ubuntu-latest |
| 13 |
strategy: |
| 14 |
fail-fast: false |
| 15 |
matrix: |
| 16 |
include: |
| 17 |
- python-version: "3.14" |
| 18 |
toxenv: pre-commit |
| 19 |
- python-version: "3.10" |
| 20 |
toxenv: min |
| 21 |
- python-version: "3.10" |
| 22 |
toxenv: min-all |
| 23 |
- python-version: "3.11" |
| 24 |
- python-version: "3.12" |
| 25 |
- python-version: "3.14" |
| 26 |
toxenv: all |
| 27 |
- python-version: "3.14" |
| 28 |
toxenv: scripts |
| 29 |
- python-version: "3.14" |
| 30 |
toxenv: docs |
| 31 |
- python-version: "3.14" |
| 32 |
toxenv: twinecheck |
| 33 |
- python-version: "3.13" |
| 34 |
toxenv: py |
| 35 |
timezone: "Pacific/Auckland" |
| 36 |
- python-version: "3.13" |
| 37 |
toxenv: py |
| 38 |
timezone: "Pacific/Fiji" |
| 39 |
steps: |
| 40 |
- uses: actions/checkout@v3 |
| 41 |
- name: 'Set up Python ${{ matrix.python-version }}' |
| 42 |
uses: actions/setup-python@v5 |
| 43 |
with: |
| 44 |
python-version: ${{ matrix.python-version }} |
| 45 |
- name: Install language-pack-fr |
| 46 |
run: sudo apt-get update && sudo apt-get install -y language-pack-fr build-essential |
| 47 |
- name: Install dependencies |
| 48 |
run: | |
| 49 |
python -m pip install --upgrade pip |
| 50 |
pip install tox |
| 51 |
- name: Run tests |
| 52 |
run: | |
| 53 |
TZ=${{ matrix.timezone || 'UTC' }} echo "Running tests with timezone: $TZ" |
| 54 |
TZ=${{ matrix.timezone || 'UTC' }} tox -e ${{ matrix.toxenv || 'py' }} |
| 55 |
- name: Upload coverage.xml to codecov |
| 56 |
uses: codecov/codecov-action@v5 |
| 57 |
with: |
| 58 |
token: ${{ secrets.CODECOV_TOKEN }} |