Skip to content

feat: consolidate zndraw-auth + zndraw-joblib into monorepo #2933

feat: consolidate zndraw-auth + zndraw-joblib into monorepo

feat: consolidate zndraw-auth + zndraw-joblib into monorepo #2933

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "14 3 * * 1" # at 03:14 on Monday.
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
os:
- ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- uses: oven-sh/setup-bun@v2
- name: Install package
run: |
uv sync --all-extras --dev
- name: Pytest (zndraw-auth)
run: uv run pytest tests/zndraw_auth/ -v
- name: Pytest (zndraw-joblib)
run: uv run pytest tests/zndraw_joblib/ -v
- name: Pytest (zndraw)
run: uv run pytest tests/zndraw/ -v
- name: Pytest (all — combined)
run: uv run pytest --cov --junitxml=junit.xml -o junit_family=legacy
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}