Skip to content

Fun for the whole family. #62

Fun for the whole family.

Fun for the whole family. #62

Workflow file for this run

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