Skip to content

Commit 0673756

Browse files
committed
Start testing with common Ubuntu packages as dependencies
1 parent 8c1bf8f commit 0673756

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1+
name: Tests (PyPA packages)
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "master"
10+
111
jobs:
212
test:
313
strategy:
414
matrix:
515
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8", "3.7"]
616
os: ["ubuntu-22.04"]
17+
include:
18+
- python-version: "3.6"
19+
os: "ubuntu-20.04"
20+
- python-version: "3.5"
21+
os: "ubuntu-20.04"
722

823
runs-on: ${{ matrix.os }}
924
steps:

.github/workflows/test-ubuntu.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests (Ubuntu packages)
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "master"
10+
11+
jobs:
12+
test:
13+
strategy:
14+
matrix:
15+
os: ["ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04"]
16+
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
submodules: 'true'
22+
- name: Set up Python
23+
run: sudo apt-get install python3
24+
- name: Install requirements
25+
run: sudo apt-get install python3-redis python3-hiredis python3-requests python3-zmq
26+
- name: Install requirements for testing (from PyPA)
27+
if: matrix.os == 'ubuntu-20.04'
28+
run: python3 -m pip install mockito
29+
- name: Install requirements for testing (from Ubuntu packages)
30+
if: matrix.os != 'ubuntu-20.04'
31+
run: sudo apt-get install python3-mockito
32+
- name: Run tests
33+
run: python3 -m unittest tests

0 commit comments

Comments
 (0)