-
Notifications
You must be signed in to change notification settings - Fork 69
43 lines (36 loc) · 1.03 KB
/
Copy pathtest_code.yml
File metadata and controls
43 lines (36 loc) · 1.03 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
name: Code Tests
# no permissions by default
permissions: {}
on:
pull_request:
push:
branches: [main]
jobs:
run:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: ["3.10", "3.14"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@f457c30a868e4760d3a6fcea5f25dc655b8edf39 # v3.2.1
with:
environment-name: TEST
init-shell: bash
create-args: >-
python=${{ matrix.python-version }} pip --file requirements.txt --file requirements-dev.txt --channel conda-forge
- name: Install library
run: |
python -m pip install -e . --no-deps --force-reinstall
- name: Tests
run: |
python -m pytest -vv -rxs tests -m "not headless"