-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 929 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
38
39
40
on:
push:
branches: [main]
pull_request:
branches: [main]
name: Tests
jobs:
tests:
name: Test Python (${{ matrix.os }} / ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"] #, "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
cache-environment: true
cache-downloads: false
create-args: >-
python=${{ matrix.python-version }}
- name: Install fastscape
run: |
python -m pip install . -v
- name: Run tests
run: |
pytest . -vv --color=yes