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 1515 test :
1616 runs-on : ubuntu-latest
1717
18+ env :
19+ PYTHON_PROJECT_PATH : ${GITHUB_WORKSPACE}/compilesketches
20+ PYTHON_PROJECT_TESTS_PATH : ${GITHUB_WORKSPACE}/compilesketches/tests
21+
1822 steps :
1923 - name : Checkout
2024 uses : actions/checkout@v2
@@ -27,18 +31,18 @@ jobs:
2731 - name : Install dependencies
2832 run : |
2933 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"
3135
3236 - name : Lint with flake8
3337 run : |
3438 pip install --quiet flake8
3539 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 }} "
3741
3842 - name : Run Python unit tests and report code coverage
3943 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 }} "
4246 # Display code coverage report in workflow run log
4347 coverage report
4448
Original file line number Diff line number Diff line change 1111 uses : actions/checkout@v2
1212
1313 - name : Spell check
14- uses : ./ libraries/spell-check
14+ uses : arduino/actions/ libraries/spell-check@master
1515 with :
1616 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