-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.09 KB
/
test.yml
File metadata and controls
44 lines (37 loc) · 1.09 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
44
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python }}
activate-environment: test
channels: conda-forge
- name: Install conda-pypi and conda-tasks deps in base
run: |
conda install -n base -y -c conda-forge \
"conda>=26.1" "conda-pypi>=0.4" \
jinja2 platformdirs tomlkit
- name: Install test dependencies
run: conda install -y pytest pytest-cov conda jinja2 platformdirs tomlkit
- name: Install conda-tasks (editable)
run: |
conda pypi install -e .
conda run -n base conda pypi install -e .
- name: Run tests
run: conda task run test