-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.08 KB
/
conda-builds.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
name: Python Package using Conda
on: [push]
jobs:
test:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# drop testing on macOS because of hours limits for private repos
os: [ubuntu-latest, windows-latest] #, macOS-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Create Testing Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: .github/workflows/conda-envs/env.yml
channels: conda-forge,defaults
activate-environment: test
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Install package
shell: bash -l {0} # conda stetup requires this special shell
run: |
python setup.py install
- name: Run tests
shell: bash -l {0} # conda setup requires this special shell
run: |
pytest