Skip to main content

.github/workflows/test.yml

1name: Test
3on:
4 push:
5 branches:
6 - main
8 pull_request:
9 branches:
10 - main
12jobs:
13 test:
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@v6
17 - name: Set up Python
18 uses: actions/setup-python@v6
19 with:
20 python-version: "3.12"
21 cache: pip
23 - name: Install dependencies
24 run: |
25 pip install -r requirements.txt
26 pip install -r aws/requirements.txt
28 - name: Run linting
29 run: |
30 ruff check .
31 ruff format --check .
33 - name: Check README files with Cog
34 run: ./text/recog --check
36 - name: Run tests
37 run: |
38 find . -name 'test_*.py' -not -path './.venv/*' | sort | xargs pytest