-
Notifications
You must be signed in to change notification settings - Fork 43
50 lines (45 loc) · 1.02 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
name: unit tests
on:
push:
branches:
- main
- staging*
pull_request:
workflow_dispatch:
jobs:
tests:
strategy:
fail-fast: false
matrix:
python:
- "3.8"
- "3.10"
platform:
- ubuntu-latest
# include:
# - platform: macos-latest
# python: "3.9"
runs-on: ${{ matrix.platform }}
name: Run unit tests
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python and mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: test-env
create-args: >-
python=${{ matrix.python }}
mamba
- name: Install showyourwork
shell: bash -l {0}
run: |
python -m pip install -U pip
python -m pip install -e ".[tests]"
- name: Run tests
shell: bash -l {0}
run: |
python -m pytest tests/unit