-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.02 KB
/
run_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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