-
Notifications
You must be signed in to change notification settings - Fork 43
47 lines (39 loc) · 1.11 KB
/
tests.yml
File metadata and controls
47 lines (39 loc) · 1.11 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
name: Tests
# no permissions by default
permissions: {}
on:
pull_request:
push:
branches: [ main ]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ "3.10", "3.14"]
os: [ ubuntu-latest ]
fail-fast: false
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Micromamba Python ${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@d7c9bd84e824b79d2af72a2d4196c7f4300d3476 # v3.0.0
with:
environment-name: TEST
init-shell: bash
create-args: >-
python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
- name: Install oceans
run: |
python -m pip install -e . --no-deps --force-reinstall
- name: Tests
run: |
python -m pytest -n 2 -rxs --cov=oceans tests
- name: Doctests
run: |
python -m pytest -vv oceans --doctest-modules