-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 937 Bytes
/
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
39
name: Unit and Integration Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
container:
image: python:3.11.6
options: --network-alias=appserver
steps:
- uses: actions/checkout@v4
- name: Install Poetry
uses: abatilo/actions-poetry@v2
- name: Cache dependencies
id: cached-poetry-dependencies
uses: actions/cache@v3
env:
cache-name: cache-poetry-deps
with:
path: |
~/.venv
~/.cache/pypoetry
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pyproject.toml', '**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: poetry install
- name: Test
run: |
poetry run python manage.py test