Skip to content

173 Validate categorical fields Main_Event and Hazards #346

173 Validate categorical fields Main_Event and Hazards

173 Validate categorical fields Main_Event and Hazards #346

Workflow file for this run

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/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: Set up cache
uses: actions/cache@v2
id: cached-poetry-dependencies
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- 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