-
Notifications
You must be signed in to change notification settings - Fork 19
50 lines (47 loc) · 1.33 KB
/
conda-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: conda Tests
on:
push:
branches: ['main']
paths-ignore: ['**.md', 'docs/**']
pull_request:
paths-ignore: ['**.md', 'docs/**']
workflow_dispatch:
concurrency:
group: 'conda-tests-${{ github.head_ref || github.run_id }}'
cancel-in-progress: true
jobs:
pytest:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10"]
runs-on: ${{matrix.platform}}
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
channel-priority: strict
python-version: ${{ matrix.python-version }}
environment-file: .github/envs/environment-${{ matrix.python-version }}.yml
activate-environment: test-environment
auto-activate-base: false
- name: Install package
shell: bash -l {0}
run: |
conda activate test-environment
python -m pip install -q --no-cache-dir .[complete,test]
- name: Run tests
shell: bash -l {0}
run: |
conda activate test-environment
conda list
python -m pip list
python -m pytest