-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.08 KB
/
run_tests.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
name: Run Unit Tests via Pytest
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --without dev
- name: Pull LFS files for testing
run: git lfs pull --include "Database/data/*.csv"
env:
GIT_TRACE: 1
- name: Run location normalization unit tests
run: poetry run pytest -ra -s tests/test_normalize_locations.py -vv
- name: Run number normalization unit tests
run: poetry run pytest -ra -s tests/test_normalize_numbers.py -vv
- name: Run l2/l3 matcher unit tests
run: poetry run pytest -ra -s tests/test_specific_instance_matcher.py -vv