Skip to content

Commit ef24872

Browse files
authored
Merge pull request #1 from per1234/update-ci
Update paths in the repository's CI workflows
2 parents 5dc254f + 47b90a9 commit ef24872

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/libraries_compile-examples.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
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

.github/workflows/spell-check.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
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

0 commit comments

Comments
 (0)