173 Validate categorical fields Main_Event and Hazards #344
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Unit Tests via Pytest | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pipx install poetry==1.8.3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
cache: poetry | |
- run: pipx install poetry==1.8.3 | |
- run: poetry install | |
- id: cache-lfs | |
name: Cache LFS files | |
uses: actions/[email protected] | |
with: | |
path: ${{ github.workspace }}/.lfs | |
key: lfs-${{ hashFiles('Database/data/*.csv') }} | |
restore-keys: lfs- | |
- name: Pull LFS files for testing | |
if: steps.cache-lfs.cache-hit != 'true' | |
run: git lfs pull --include "Database/data/*.csv" | |
env: | |
GIT_TRACE: 1 | |
- name: Run tests | |
run: poetry run pytest -ra -s tests -vv |