Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Nov 16, 2023
1 parent cc35db2 commit 7ce4244
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Test FEC Data"

on: push

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout the `fec-data` repository
uses: actions/checkout@v3
- name: Install node 20
uses: actions/setup-node@v4
id: install-node
with:
node-version: "20.x"
- name: Install node dependencies
run: |
npm install
- name: Install python 3.12.x
uses: actions/setup-python@v4
id: install-python
with:
python-version: "3.12"
- name: Install python dependencies
run: |
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
deactivate
- name: Run pre-commit checks
run: |
source .venv/bin/activate
pre-commit run --all
deactivate
- name: Run python tests
run: |
source .venv/bin/activate
python -m unittest discover -s server
deactivate

0 comments on commit 7ce4244

Please sign in to comment.