-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 957 Bytes
/
build.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
name: Install dependencies and run tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_wheels:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
python-version: ["3.8"]
name: Build wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
# Required when using an activated conda environment in steps
# See https://github.com/conda-incubator/setup-miniconda#IMPORTANT
shell: bash -l {0}
steps:
- uses: actions/checkout@main
- uses: conda-incubator/setup-miniconda@v3
name: Setup conda environment
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: paste
environment-file: environment.yml
- name: Install package
run: pip install -e .
- name: Pytest
run: pytest