-
Notifications
You must be signed in to change notification settings - Fork 56
50 lines (47 loc) · 1.25 KB
/
main.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: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
# Lowest versions to test for.
- python-version: '3.8'
conda-build-version: '3.25'
conda-channel: 'conda-forge'
# Unbound/dev versions to test for.
- python-version: '*'
conda-build-version: '*'
conda-channel: 'conda-canary/label/dev'
steps:
- uses: actions/checkout@v2
- name: install mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: tests/env.yml
create-args: >-
--channel-priority=flexible
python=${{ matrix.python-version }}
${{ matrix.conda-channel }}::conda
${{ matrix.conda-channel }}::conda-build=${{ matrix.conda-build-version }}
- name: Install boa
shell: bash -l {0}
run: |
pip install .
- name: Run tests
shell: bash -l {0}
run: |
conda config --add channels conda-forge
conda config --set channel_priority strict
pytest tests
env:
PYTHONUTF8: 1