photojawn/.forgejo/workflows/test.yml
Nick Pegg 9ba219c24a
Some checks failed
Run tests / build (3.12) (pull_request) Failing after 41s
Run tests / build (3.13) (pull_request) Failing after 40s
reorder
2025-04-26 17:38:45 -07:00

37 lines
870 B
YAML

name: Run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version:
- '3.12'
- '3.13'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- run: pip install --break-system-packages poetry
- name: Cache deps
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-${{ matrix.python-version }}-
- name: Install deps
run: make dev
- name: Run tests
run: make ci