-
Notifications
You must be signed in to change notification settings - Fork 35
37 lines (35 loc) · 1009 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
33
34
35
36
37
name: Testing
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
setup-build:
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }}, ${{ matrix.test-file }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.10"]
test-file: ["tests/test_dcip.py", "tests/test_em.py", "tests/test_gpr.py tests/test_seismic.py", "tests/test_inversion.py", "tests/test_gravity.py tests/test_mag.py"]
steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
init-shell: >-
bash
powershell
create-args: >-
python=${{ matrix.python-version }}
cache-environment: true
post-cleanup: 'all'
- name: Run Tests
shell: micromamba-shell {0}
run: |
pip install -e . --no-deps
pytest ${{ matrix.test-file }} -v