-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 945 Bytes
/
check.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
name: continuous integration
on: [push, pull_request]
# These keys should match the keys in .env.template
env:
SOME_VAR: "Test"
AFFILS_DB_NAME: "affils.db"
AFFILS_DB_FILE: ${{ github.workspace }}/affils.db
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: install Pipenv
run: pip install pipenv --user
- name: install dependencies
run: pipenv sync --dev # Installs all deps, including dev deps, from Pipfile.lock.
- name: seed the database
run: pipenv run invoke dbseed
- name: Format
run: pipenv run invoke fmt
- name: lint
run: pipenv run invoke lint
- name: check types
run: pipenv run invoke types
- name: run tests
run: pipenv run invoke test