-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.09 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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