Update big donors notebook #47
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: "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 frontend tests | |
run: npm run test-ci | |
- name: Run python tests | |
run: | | |
source .venv/bin/activate | |
python -m unittest discover -s server | |
deactivate |