-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 948 Bytes
/
CI.yaml
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
name: PUSH
on: [push]
jobs:
build:
runs-on: [ubuntu-latest]
strategy:
matrix:
python-version: ["3.9","3.10","3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Create Python Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: .github/workflows/envs/environment.yml
channels: conda-forge
activate-environment: test
show-channel-urls: true
miniforge-variant: Mambaforge
use-mamba: true
- name: Install package
shell: bash -l {0}
run: |
pip install -e .
- name: Test with pytest
shell: bash -l {0}
run: |
which python
python -m pip install pytest
pytest