Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/libraries_compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
test:
runs-on: ubuntu-latest

env:
PYTHON_PROJECT_PATH: ${GITHUB_WORKSPACE}/compilesketches
PYTHON_PROJECT_TESTS_PATH: ${GITHUB_WORKSPACE}/compilesketches/tests

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -27,18 +31,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --requirement "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches/tests/requirements.txt"
pip install --requirement "${{ env.PYTHON_PROJECT_TESTS_PATH }}/requirements.txt"

- name: Lint with flake8
run: |
pip install --quiet flake8
pip install --quiet pep8-naming
flake8 --config "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches/.flake8" --show-source "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches"
flake8 --config "${{ env.PYTHON_PROJECT_PATH }}/.flake8" --show-source "${{ env.PYTHON_PROJECT_PATH }}"

- name: Run Python unit tests and report code coverage
run: |
export PYTHONPATH="$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches"
coverage run --source="$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches" --module pytest "$GITHUB_WORKSPACE/libraries/compile-examples/compilesketches/tests"
export PYTHONPATH="${{ env.PYTHON_PROJECT_PATH }}"
coverage run --source="${{ env.PYTHON_PROJECT_PATH }}" --module pytest "${{ env.PYTHON_PROJECT_TESTS_PATH }}"
# Display code coverage report in workflow run log
coverage report

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
uses: actions/checkout@v2

- name: Spell check
uses: ./libraries/spell-check
uses: arduino/actions/libraries/spell-check@master
with:
ignore-words-list: etc/codespell-ignore-words-list.txt
skip-paths: ./libraries/spell-check/test/testdata,./setup-taskfile/node_modules,./setup-taskfile/package-lock.json