-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (33 loc) · 1.13 KB
/
ci.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
41
42
43
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI
on: [pull_request, push]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: hisp-env
miniforge-version: latest
channels: conda-forge
environment-file: environment.yml
- name: install HISP
shell: bash -l {0}
run: python -m pip install .[test]
- name: Run tests
shell: bash -l {0}
run: |
pytest test/ --cov hisp --cov-report xml --cov-report term
- name: Run example
shell: bash -l {0}
working-directory: examples
run: python all_bin_scenario.py
- name: Run plotting example
shell: bash -l {0}
working-directory: examples
run: jupyter-nbconvert --to notebook plotting.ipynb --execute