Skip to content

Commit

Permalink
FIX: typo condition workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ldevillez committed May 11, 2024
1 parent 6b8901f commit 5ce64c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:
fetch-depth: 0

- name: Get changed files
id: changed-files
id: changed-python
uses: tj-actions/changed-files@v44
with:
files: |
python: |
**/*.py
#fetch_depth: 0

- name: Install python
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'
uses: actions/setup-python@v3
with:
python-version: 3.x


- run: pip install --upgrade pip
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'
- run: pip install .
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'
- run: pip install pylint==2.16.*
if: steps.changed-files.outputs.test_any_changed == 'true'
- run: pylint --rcfile=pylintrc ${{ steps.changed-files.outputs.all_changed_files }}
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'
- run: pylint --rcfile=pylintrc ${{ steps.changed-python.outputs.all_changed_python }}
if: steps.changed-python.outputs.test_any_changed == 'true'
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v4

- name: Get changed files
id: changed-files
id: changed-python
uses: tj-actions/changed-files@v44
with:
files: |
Expand All @@ -26,24 +26,24 @@ jobs:
python-version: 3.9

- name: Install dependencies
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'
run: sudo apt-get install libgirepository1.0-dev

- run: pip install --upgrade pip
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'
- run: pip install .
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'

- name: Run Test
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'
run: coverage run -m unittest

- name: Create coverage xml
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'
run: coverage xml coverage.xml

- name: Get Cover
if: steps.changed-files.outputs.test_any_changed == 'true'
if: steps.changed-python.outputs.test_any_changed == 'true'
uses: orgoro/[email protected]
with:
coverageFile: coverage.xml
Expand Down

0 comments on commit 5ce64c8

Please sign in to comment.