-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (35 loc) · 1.06 KB
/
test.yml
File metadata and controls
43 lines (35 loc) · 1.06 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
name: Pytest
on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
env:
# https://github.com/pytest-dev/pytest/issues/2042#issuecomment-429289164
PY_IGNORE_IMPORTMISMATCH: 1
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup environment
uses: mamba-org/setup-micromamba@v2
with:
environment-name: opera_tropo
environment-file: conda-env.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Install dependencies
run: |
eval "$(micromamba shell hook --shell bash)"
micromamba activate opera_tropo
python -m pip install --no-deps .
- name: Run tests with Pytest
run: |
eval "$(micromamba shell hook --shell bash)"
micromamba activate opera_tropo
pytest . --maxfail=1 --disable-warnings -v