Skip to content

Commit

Permalink
Merge branch 'main' into data-gap
Browse files Browse the repository at this point in the history
  • Loading branch information
i-be-snek authored Oct 28, 2024
2 parents 8111fdb + fb9a707 commit 1bcb9cd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,26 @@ jobs:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/[email protected]
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- id: cache-dependencies
name: Cache dependencies
uses: actions/[email protected]
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
path: ${{ github.workspace }}/.venv
key: dependencies-${{ hashFiles('**/poetry.lock') }}
restore-keys: dependencies-
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
if: steps.cache-dependencies.cache-hit != 'true'
run: |
python3 -m pip install -U pip poetry
poetry --version
poetry check --no-interaction
poetry config virtualenvs.in-project true
poetry install --no-interaction
run: poetry install --without dev
- name: Pull LFS files for testing
run: git lfs pull --include "Database/data/*"
run: git lfs pull --include "Database/data/*.csv"
env:
GIT_TRACE: 1
- name: Run tests
run: poetry run pytest -ra -s tests
- 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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Run Unit Tests via Pytest](https://github.com/VUB-HYDR/Wikimpacts/actions/workflows/run_tests.yml/badge.svg)](https://github.com/VUB-HYDR/Wikimpacts/actions/workflows/run_tests.yml)

# Wikimpacts
Wikimapcts is the first version of climate impact dataset creating by generative AI GPT4.0

Expand Down

0 comments on commit 1bcb9cd

Please sign in to comment.