-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (40 loc) · 1.14 KB
/
test.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
name: Test
on:
workflow_call:
jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-poetry
with:
poetry-version: "1.2.2"
- run: poetry run pytest tests -m "not integration"
legacy-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-poetry
with:
poetry-version: "1.2.2"
- run: poetry run pip install "pytorch-lightning<2.0.0"
- run: poetry run pytest tests -m "not integration"
integration:
runs-on: ubuntu-latest
needs: [ legacy-unit ]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-poetry
with:
poetry-version: "1.2.2"
- run: poetry run pytest tests -m integration
legacy-integration:
runs-on: ubuntu-latest
needs: [ legacy-unit ]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-poetry
with:
poetry-version: "1.2.2"
- run: poetry run pip install "pytorch-lightning<2.0.0"
- run: poetry run pytest tests -m integration