-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (30 loc) · 914 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Run tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
uses: fizyk/actions-reuse/.github/workflows/[email protected]
with:
python-versions: '["3.8", "3.9", "3.10", "3.11", "3.12"]'
pytest_opts: '-k "not mysql and not postgresql"'
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
postgresql:
needs: tests
uses: fizyk/actions-reuse/.github/workflows/[email protected]
with:
python-versions: '["3.8", "3.9", "3.10", "3.11", "3.12"]'
pytest_opts: "-k postgresql"
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
mysql:
needs: tests
uses: fizyk/actions-reuse/.github/workflows/[email protected]
with:
python-versions: '["3.8", "3.9", "3.10", "3.11", "3.12"]'
pytest_opts: "-k mysql"
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}