Files
github-readme-stats/.github/workflows/tests.yml
T
shay 83c4227d5f ci: add tests + docker build workflows with status badges
- tests.yml: matrix-run pytest for fetcher/generator/edge on push + PR
- docker.yml: matrix-build each service's Dockerfile with buildx cache
- README badges reflect both workflow statuses
2026-04-17 18:13:18 -04:00

34 lines
682 B
YAML

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pytest:
name: ${{ matrix.service }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
service: [fetcher, generator, edge]
defaults:
run:
working-directory: ${{ matrix.service }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: ${{ matrix.service }}/requirements.txt
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run pytest
run: pytest -v