Bump certifi from 2022.12.7 to 2023.7.22 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Data Tests (Changed Files) | |
on: | |
pull_request: | |
jobs: | |
data_tests: | |
name: Data tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
test: [duplicate_entries, file_format, missing_values, vote_breakdown_totals] | |
env: | |
LOG_FILE: ${{ github.workspace }}/${{ matrix.test }}.txt | |
steps: | |
- name: Save the pull request number in an artifact | |
shell: bash | |
run: echo ${{ github.event.number }} > pull_request_number.txt | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Check out data | |
uses: actions/checkout@v3 | |
with: | |
path: data | |
fetch-depth: 0 | |
- name: Check out data tests | |
uses: actions/checkout@v3 | |
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 | |
with: | |
path: data | |
files: | | |
**/*.csv | |
- name: Run data tests | |
if: "${{ steps.changed-files.outputs.added_files != '' }}" | |
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 | |
if: failure() | |
with: | |
name: pull_request_number | |
path: ./pull_request_number.txt | |
- name: Upload error logs | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: ${{ matrix.test }} | |
path: ${{ env.LOG_FILE }} |