-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.1 KB
/
pytest.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
40
41
42
43
44
45
46
47
48
49
---
name: Run pytest
on:
push:
branches:
- '**'
pull_request:
branches:
- main
- develop
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
pytest:
name: Run Pytest
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.13']
services:
redis:
image: redis:5.0
ports:
- 6379:6379
steps:
- name: Check out the code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
# https://github.com/pytest-dev/pytest-github-actions-annotate-failures/pull/68 isn't yet in a release
pip install git+https://github.com/pytest-dev/pytest-github-actions-annotate-failures.git@6e66cd895fe05cd09be8bad58f5d79110a20385f
- name: Run Pytest
env:
REDIS_HOST: "localhost"
run: pytest