-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.19 KB
/
test.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
50
51
name: Python CI
on: ["pull_request", "push"]
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: "redis/redis-stack:6.2.6-v7"
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
python-version: ["3.11"]
poetry-version: ["1.6.1"]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get -yqq install build-essential
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install Python dependencies
env:
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
run: poetry install
- name: Run tests
env:
REDIS_OM_URL: redis://localhost:6379
REDIS_CACHE_URL: redis://localhost:6379
ARQ_REDIS_URL: redis://localhost:6379
run: poetry run pytest