Skip to content

Commit

Permalink
Merge pull request #45 from warwickmm/bump_actions_versions
Browse files Browse the repository at this point in the history
Bump versions of actions in workflows
  • Loading branch information
dwillis authored Apr 7, 2024
2 parents cef918f + 4ebc8d7 commit e5af235
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/data_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:

steps:
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Check out data
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: data

- name: Check out data tests
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: openelections/openelections-data-tests
ref: v2.2.0
Expand All @@ -36,7 +36,7 @@ jobs:
run: python3 ${{ github.workspace }}/data_tests/run_tests.py --group-failures --log-file=${{ env.LOG_FILE }} ${{ matrix.test }} ${{ github.workspace }}/data

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ matrix.test }}_full_logs
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/data_tests_changed_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@ jobs:
run: echo ${{ github.event.number }} > pull_request_number.txt

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Check out data
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: data
fetch-depth: 0

- name: Check out data tests
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: openelections/openelections-data-tests
ref: v2.2.0
path: data_tests

- name: Get changed *.csv files
id: changed-files
uses: tj-actions/changed-files@v35
uses: tj-actions/changed-files@v44
with:
path: data
files: |
Expand All @@ -51,14 +51,14 @@ jobs:
run: python3 ${{ github.workspace }}/data_tests/run_tests.py --files ${{ steps.changed-files.outputs.added_files }} --group-failures --log-file=${{ env.LOG_FILE }} --truncate-log-file ${{ matrix.test }} ${{ github.workspace }}/data

- name: Upload the pull request number
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: pull_request_number
path: ./pull_request_number.txt

- name: Upload error logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ matrix.test }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Download artifacts
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3
with:
run_id: ${{ github.event.workflow_run.id }}

Expand All @@ -30,7 +30,7 @@ jobs:

- name: Check for failures
id: check_failures
uses: andstor/file-existence-action@v2
uses: andstor/file-existence-action@v3
with:
files: ./${{ matrix.test }}/${{ matrix.test }}.txt

Expand All @@ -43,7 +43,7 @@ jobs:

- name: Comment on pull request
if: steps.check_failures.outputs.files_exists == 'true'
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
await github.rest.issues.createComment({
Expand Down

0 comments on commit e5af235

Please sign in to comment.