-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (33 loc) · 1001 Bytes
/
build.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
---
name: build
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: .github/environment.yaml
create-args: >-
python=${{ matrix.python-version }}
- name: Install package
shell: bash -l {0}
run: pip install -e .
# pyn5 does not work for py3.9
# # pyn5 can only be installed on linux
# - name: Install pyn5
# if: matrix.os == 'ubuntu-latest'
# shell: bash -l {0}
# run: pip install pyn5
- name: Run tests
shell: bash -l {0}
run: python -m unittest discover -s test -v