-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (35 loc) · 1.05 KB
/
data_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Data Tests
on: [push, 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: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Check out data
uses: actions/checkout@v4
with:
path: data
- name: Check out data tests
uses: actions/checkout@v4
with:
repository: openelections/openelections-data-tests
ref: v2.2.0
path: data_tests
- name: Run data tests
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@v4
if: failure()
with:
name: ${{ matrix.test }}_full_logs
path: ${{ env.LOG_FILE }}