File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 15
15
test :
16
16
runs-on : ubuntu-latest
17
17
18
+ env :
19
+ PYTHON_PROJECT_PATH : ${GITHUB_WORKSPACE}/compilesketches
20
+ PYTHON_PROJECT_TESTS_PATH : ${GITHUB_WORKSPACE}/compilesketches/tests
21
+
18
22
steps :
19
23
- name : Checkout
20
24
uses : actions/checkout@v2
@@ -27,18 +31,18 @@ jobs:
27
31
- name : Install dependencies
28
32
run : |
29
33
python -m pip install --upgrade pip
30
- pip install --requirement "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches/tests /requirements.txt"
34
+ pip install --requirement "${{ env.PYTHON_PROJECT_TESTS_PATH }} /requirements.txt"
31
35
32
36
- name : Lint with flake8
33
37
run : |
34
38
pip install --quiet flake8
35
39
pip install --quiet pep8-naming
36
- flake8 --config "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches/ .flake8" --show-source "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches "
40
+ flake8 --config "${{ env.PYTHON_PROJECT_PATH }}/ .flake8" --show-source "${{ env.PYTHON_PROJECT_PATH }} "
37
41
38
42
- name : Run Python unit tests and report code coverage
39
43
run : |
40
- export PYTHONPATH="$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches "
41
- coverage run --source="$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches " --module pytest "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches/tests "
44
+ export PYTHONPATH="${{ env.PYTHON_PROJECT_PATH }} "
45
+ coverage run --source="${{ env.PYTHON_PROJECT_PATH }} " --module pytest "${{ env.PYTHON_PROJECT_TESTS_PATH }} "
42
46
# Display code coverage report in workflow run log
43
47
coverage report
44
48
Original file line number Diff line number Diff line change 11
11
uses : actions/checkout@v2
12
12
13
13
- name : Spell check
14
- uses : ./ libraries/spell-check
14
+ uses : arduino/actions/ libraries/spell-check@master
15
15
with :
16
16
ignore-words-list : etc/codespell-ignore-words-list.txt
17
- skip-paths : ./libraries/spell-check/test/testdata,./setup-taskfile/node_modules,./setup-taskfile/package-lock.json
You can’t perform that action at this time.
0 commit comments