Skip to content

Commit

Permalink
👷 Add tests to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
i-be-snek committed Jun 9, 2024
1 parent 1ea1d54 commit eb3eafe
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run Unit Tests via Pytest

on:
push:
pull_request:
branches:
- main

jobs:
deploy:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: 3.11
- id: cache-dependencies
name: Cache dependencies
uses: actions/[email protected]
with:
path: ${{ github.workspace }}/.venv
key: dependencies-${{ hashFiles('**/poetry.lock') }}
restore-keys: dependencies-
- 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
- name: Run tests
run: |
poetry run pytest -ra -s -o log_cli=true Database/tests

0 comments on commit eb3eafe

Please sign in to comment.