-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.01 KB
/
python-package-conda.yml
File metadata and controls
42 lines (35 loc) · 1.01 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
name: Python Package using Conda
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
max-parallel: 5
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: strict
activate-environment: pyAPisolation
auto-activate-base: false
- name: Install conda dependencies
shell: bash -el {0}
run: |
conda install -y numpy pandas scipy matplotlib h5py pytest
- name: Install pip dependencies
shell: bash -el {0}
run: |
pip install --upgrade pip setuptools
pip install -e ".[full]"
- name: Test with pytest
shell: bash -el {0}
run: |
pytest tests/ -v --tb=short