-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.46 KB
/
main.yml
File metadata and controls
55 lines (47 loc) · 1.46 KB
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
45
46
47
48
49
50
51
52
53
54
55
name: usrse-python
on:
# This should run on a push to any branch except main, gh-pages, and binoc
push:
branches-ignore:
- main
- gh-pages
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup black linter
run: conda create --quiet --name black pyflakes
- name: Check Spelling
uses: crate-ci/typos@592b36d23c62cb378f6097a292bc902ee73f93ef # version 1.0.4
with:
files: ./docs/getting_started/ ./docs/index.rst
- name: Lint python code
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate black
pip install black==20.8b1
black --check usrse
- name: Check imports with pyflakes
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate black
pyflakes usrse/main/*py
pyflakes usrse/client
pyflakes usrse/*.py
pyflakes usrse/utils/fileio.py
pyflakes usrse/utils/terminal.py
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup black linter
run: conda create --quiet --name testing pytest
- name: Run Tests
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate testing
pip install -e .
cd usrse/tests
/bin/bash test_client.sh
pytest -xsv test_*.py