-
-
Notifications
You must be signed in to change notification settings - Fork 44
44 lines (37 loc) · 1.05 KB
/
main.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
41
42
43
44
name: CI
on:
push:
branches:
- master
pull_request:
branches_ignore: []
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup black environment
run: conda create --quiet --name black black
- name: Lint and format Python code
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate black
pip install -r .github/dev-requirements.txt
pre-commit run --all-files
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup conda environment
run: |
conda create --quiet --name testing
export PATH="/usr/share/miniconda/bin:$PATH"
source activate testing
pip install matplotlib
pip install .
- name: Test deid
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate testing
pip install deid-data
python -m unittest discover -s deid/tests/ -p '[t|T]est*.py'