Skip to content

Commit

Permalink
Merge branch 'master' of github.com:openelections/openelections-data-mi
Browse files Browse the repository at this point in the history
  • Loading branch information
dwillis committed Aug 29, 2024
2 parents c996700 + 58c8937 commit 9e0ae33
Show file tree
Hide file tree
Showing 5 changed files with 619 additions and 618 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@v45
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
9 changes: 5 additions & 4 deletions .github/workflows/pull_request_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:

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

- name: Read pull request number
id: pull_request_number_reader
Expand All @@ -30,7 +31,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 +44,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
Loading

0 comments on commit 9e0ae33

Please sign in to comment.