forked from HelikarLab/COMO
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 919 Bytes
/
unit_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
name: Unit Tests
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
unit-tests:
runs-on: ubuntu-latest
# Using a matrix lets us define additional versions of Python to test against
strategy:
matrix:
python-version: [ "3.10" ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: main/tests/environment.yaml
environment-name: como_tests
micromamba-version: "latest"
init-shell: bash
cache-environment: true
cache-downloads: true
post-cleanup: "none"
create-args: >-
python=${{ matrix.python-version }}
- name: Run tests
run: python -m pytest
shell: micromamba-shell {0}