-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (37 loc) · 1.06 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
name: Test
on:
push:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
fail-fast: false
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install redis-server
run: |
sudo apt-get update
sudo apt-get install redis-server
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2.3.0
- name: Install dependencies
run: poetry install
- name: Run pytest
run: poetry run pytest test
- name: Run isort
run: poetry run isort --sp pyproject.toml --check .
- name: Run black
run: poetry run black --config pyproject.toml --check .
- name: Run pylint
run: poetry run pylint redispatcher/
- name: Check package version
run: poetry run python scripts/assert_package_versions_match.py