Skip to content

Commit

Permalink
[QMI-096]
Browse files Browse the repository at this point in the history
Updated all v3 workflow actions to be v4.
  • Loading branch information
Henri Ervasti committed Aug 9, 2024
1 parent 8863069 commit 139ce3d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python-latest
uses: actions/setup-python@v4
with:
Expand All @@ -49,7 +49,7 @@ jobs:
exit $( echo "$PYLINT_SCORE < $PYLINT_MIN_SCORE" | bc )
- name: upload pylint test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pylint-results
path: pylint.log
Expand All @@ -62,7 +62,7 @@ jobs:
if [[ "$RESULT" = *"pass"* ]]; then exit 0; else exit 1; fi
- name: upload mypy test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mypy-results
path: mypy.log
Expand All @@ -76,7 +76,7 @@ jobs:
exit $( echo "$COVERAGE_PERC < $COVERAGE_MIN_PERC" | bc )
- name: upload coverage results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-results
path: coverage.log
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up Python
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
exit $( echo "$SCORE < $PYLINT_MIN_SCORE" | bc )
- name: upload pylint test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pylint-results
path: pylint.log
Expand All @@ -76,7 +76,7 @@ jobs:
if [[ "$RESULT" = *"pass"* ]]; then exit 0; else exit 1; fi
- name: upload mypy test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mypy-results
path: mypy.log
Expand All @@ -92,7 +92,7 @@ jobs:
if [ "${{ matrix.python-version }}" = "3.10" ]; then anybadge -o -l tests -v $RESULT -f $BADGES_DIR/tests.svg fail=red pass=green; fi
- name: upload coverage results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-results
path: coverage.log
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/schedule-full-ci-test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python-latest
uses: actions/setup-python@v4
with:
Expand All @@ -46,7 +46,7 @@ jobs:
exit $( echo "$SCORE < $PYLINT_MIN_SCORE" | bc )
- name: upload pylint test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pylint-results
path: pylint.log
Expand All @@ -59,7 +59,7 @@ jobs:
if [[ "$RESULT" = *"pass"* ]]; then exit 0; else exit 1; fi
- name: upload mypy test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mypy-results
path: mypy.log
Expand All @@ -73,7 +73,7 @@ jobs:
exit $( echo "$COVERAGE_PERC < $COVERAGE_MIN_PERC" | bc )
- name: upload coverage results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-results
path: coverage.log
Expand All @@ -84,7 +84,7 @@ jobs:
python -m xmlrunner --output-file testresults.xml discover --start-directory=tests --pattern="test_*.py"
- name: upload unit-tests results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: unit-test-results
path: testresults.xml

0 comments on commit 139ce3d

Please sign in to comment.