Skip to content

x

x #31

Workflow file for this run

name: 🧪 tests

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 44, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CODECOV_TOKEN != ''
on:
workflow_call:
secrets:
CODECOV_TOKEN:
required: false
push:
branches-ignore:
# these are already tested by publish-dev
- dev
- dev/*
- dev-*
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install uv
uv sync --group dev
- name: Lint check
id: lint-check
# allow unit tests to run even if this fails
continue-on-error: true
run: |
make lint-check
- name: Run unit tests
run: |
make test
- name: Upload results to Codecov
if: ${{ secrets.CODECOV_TOKEN != '' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
report_type: test_results
- name: Final check
if: ${{ steps.lint-check.outcome == 'failure' }}
run: |
echo Lint check failed, check its log
exit 1