-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (36 loc) · 948 Bytes
/
test.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
39
40
name: Python package
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
# See https://stackoverflow.com/questions/72703363
defaults:
run:
shell: bash -l {0}
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v4
- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environments/minimal.yml
environment-name: anaconda-client-env
cache-downloads: true
cache-env: true
- name: Pip install package
run: |
python -m pip install --upgrade pip
pip install .[testing]
pip install wandb
- name: Test with pytest
run: |
pytest