Skip to content

Commit 6d5b215

Browse files
committed
GHA build
1 parent d6db7b7 commit 6d5b215

File tree

2 files changed

+48
-88
lines changed

2 files changed

+48
-88
lines changed

.circleci/config.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.github/workflows/test.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

0 commit comments

Comments
 (0)