-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (47 loc) · 1.36 KB
/
pytest.yml
File metadata and controls
55 lines (47 loc) · 1.36 KB
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
45
46
47
48
49
50
51
52
53
54
55
name: pytest
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yaml
environment-name: amrex-agent-dev
cache-environment: true
cache-downloads: true
- name: Run unit tests
run: |
micromamba run -n amrex-agent-dev pytest tests/unit
- name: Run quality tests
run: |
micromamba run -n amrex-agent-dev pytest tests/quality
integration-ladder:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
level: [integration_l1, integration_l2, integration_l3, integration_l4, integration_full]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yaml
environment-name: amrex-agent-dev
cache-environment: true
cache-downloads: true
- name: Run integration ladder tests
run: |
micromamba run -n amrex-agent-dev \
pytest tests/integration -m "${{ matrix.level }}" -v