Skip to content

Commit

Permalink
Merge pull request #47 from warwickmm/run_data_tests
Browse files Browse the repository at this point in the history
Add workflow to run data tests
  • Loading branch information
dwillis authored Aug 18, 2021
2 parents 6101773 + 1aa051d commit a9dca98
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/data_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Data Tests

on: [push, pull_request]

jobs:
duplicate_entries:
name: Duplicate entries
runs-on: ubuntu-latest
strategy:
fail-fast: false

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

- name: Check out data
uses: actions/[email protected]
with:
path: data

- name: Check out data tests
uses: actions/[email protected]
with:
repository: openelections/openelections-data-tests
ref: v0.1.0
path: data_tests

- name: Run data tests
run: python3 ${{ github.workspace }}/data_tests/run_tests.py duplicate_entries ${{ github.workspace }}/data
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# openelections-data-az [![Build Status](https://github.com/openelections/openelections-data-az/actions/workflows/format_tests.yml/badge.svg?branch=master)](https://github.com/openelections/openelections-data-az/actions)
[![Build Status](https://github.com/openelections/openelections-data-az/actions/workflows/data_tests.yml/badge.svg?branch=master)](https://github.com/openelections/openelections-data-az/actions/workflows/data_tests.yml?query=branch%3Amaster)
[![Build Status](https://github.com/openelections/openelections-data-az/actions/workflows/format_tests.yml/badge.svg?branch=master)](https://github.com/openelections/openelections-data-az/actions/workflows/format_tests.yml?query=branch%3Amaster)

# openelections-data-az
Pre-processed election results for Arizona

0 comments on commit a9dca98

Please sign in to comment.