File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint and Test
2+
3+ on : [push]
4+
5+ jobs :
6+ build-linux :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ max-parallel : 5
10+
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Set up Python 3.8
14+ uses : actions/setup-python@v2
15+ with :
16+ python-version : 3.8
17+ - name : Add conda to system path
18+ run : |
19+ # $CONDA is an environment variable pointing to the root of the miniconda directory
20+ echo $CONDA/bin >> $GITHUB_PATH
21+ - name : Install dependencies
22+ run : |
23+ conda env update --file environment.yml --name base
24+ - name : Lint with flake8
25+ run : |
26+ flake8 .
27+ - name : Check formatting with black
28+ run : |
29+ black .
30+ - name : Test with pytest
31+ run : |
32+ py.test
33+
Original file line number Diff line number Diff line change 1+ name : cppimport
2+ channels :
3+ - conda-forge
4+ dependencies :
5+ - pybind11
6+ - mako
7+ - black
8+ - pytest
9+ - flake8
You can’t perform that action at this time.
0 commit comments