From 2e2544a5373c298cdfe63fcdd24dd76ebf6903fe Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Wed, 18 Aug 2021 08:46:12 -0700 Subject: [PATCH 1/3] Add workflow to run data tests. --- .github/workflows/data_tests.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/data_tests.yml diff --git a/.github/workflows/data_tests.yml b/.github/workflows/data_tests.yml new file mode 100644 index 0000000..a92e060 --- /dev/null +++ b/.github/workflows/data_tests.yml @@ -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/checkout@v2.3.4 + with: + path: data + + - name: Check out data tests + uses: actions/checkout@v2.3.4 + 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 From cb186b29c7f899c5e33e089915bfca465082ba21 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Wed, 18 Aug 2021 08:46:37 -0700 Subject: [PATCH 2/3] Add badge to indicate status of data tests. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f4e8df6..ca7a071 100644 --- a/README.md +++ b/README.md @@ -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) +[![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) + +# openelections-data-az Pre-processed election results for Arizona From 1aa051d862d7d6dd2dac4811bc429be9e3ae2808 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Wed, 18 Aug 2021 08:47:16 -0700 Subject: [PATCH 3/3] Improve workflow badge links. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca7a071..e192a60 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![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) -[![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