File tree Expand file tree Collapse file tree 2 files changed +48
-88
lines changed
Expand file tree Collapse file tree 2 files changed +48
-88
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : test-workflow
2+
3+ on : [push, pull_request, workflow_dispatch]
4+
5+ jobs :
6+ lint :
7+ runs-on : ubuntu-24.04
8+ container :
9+ image : python:3.12
10+ steps :
11+ - uses : actions/checkout@v4
12+ - name : Install dependencies
13+ run : |
14+ pip install -r requirements_lint.txt
15+ - name : Lint
16+ run : |
17+ lintlizard
18+
19+ test :
20+ runs-on : ubuntu-24.04
21+ strategy :
22+ fail-fast : false
23+ matrix :
24+ python-version : ["3.9", "3.11", "3.12"]
25+ redis-version : ["3.2.12"]
26+ services :
27+ redis :
28+ image : redis:${{ matrix.redis-version }}-alpine
29+ options : >-
30+ --health-cmd "redis-cli ping"
31+ --health-interval 10s
32+ --health-timeout 5s
33+ --health-retries 5
34+ ports :
35+ - 6379:6379
36+ container :
37+ image : python:${{ matrix.python-version }}
38+ env :
39+ STRICT_WARNINGS : " 1"
40+ REDIS_HOST : redis
41+ steps :
42+ - uses : actions/checkout@v4
43+ - name : Install dependencies
44+ run : |
45+ pip install --no-deps -r requirements_tests.txt
46+ - name : Test
47+ run : |
48+ PYTHONPATH=. pytest
You can’t perform that action at this time.
0 commit comments