-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 890 Bytes
/
ci.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
name: Run linter & tests
on: push
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
cache: pip
cache-dependency-path: |
requirements/base.txt
requirements/local.txt
- name: Run pre-commit
uses: pre-commit/[email protected]
test:
env:
MARKLOGIC_HOST: ""
MARKLOGIC_USER: ""
MARKLOGIC_PASSWORD: ""
name: Run unit tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@main
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: "3.9"
- run: pip install -r requirements/local.txt
- run: python -m pytest ds-caselaw-ingester/tests.py