-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 839 Bytes
/
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
name: autoStreamTree CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
environment-file: environment.yml
activate-environment: autostreamtree
use-mamba: true
- name: Install Package
shell: bash -l {0}
run: |
conda activate autostreamtree
pip install -e .
- name: Lint with flake8
shell: bash -l {0}
run: |
conda activate autostreamtree
flake8 autostreamtree/*.py
- name: Run unit tests
shell: bash -l {0}
run: |
conda activate autostreamtree
pytest tests/