mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
42 lines
850 B
YAML
42 lines
850 B
YAML
name: Run Pytest
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**' # Run on all branches
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
etl-unit-tests:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install poetry
|
|
poetry install --no-root
|
|
|
|
- name: Run Tests
|
|
run: |
|
|
poetry run pytest -W ignore::DeprecationWarning
|
|
env:
|
|
PYTHONPATH: ${{ github.workspace }}
|
|
|
|
|
|
|
|
continue-on-error: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }}
|