Skip to content

Commit

Permalink
Start testing with common Ubuntu packages as dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
em92 committed Oct 19, 2024
1 parent 8c1bf8f commit 830913e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
name: Tests (PyPA packages)

on:
push:
branches:
- "master"
pull_request:
branches:
- "master"

jobs:
test:
strategy:
matrix:
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8", "3.7"]
os: ["ubuntu-22.04"]
include:
- python-version: "3.6"
os: "ubuntu-20.04"
- python-version: "3.5"
os: "ubuntu-20.04"

runs-on: ${{ matrix.os }}
steps:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests (Ubuntu packages)

on:
push:
branches:
- "master"
pull_request:
branches:
- "master"

jobs:
test:
strategy:
matrix:
os: ["ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04"]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Set up Python
run: sudo apt-get install python3
- name: Install requirements
run: sudo apt-get install python3-redis python3-hiredis python3-requests python3-zmq
- name: Install requirements for testing (from PyPA)
if: matrix.os == 'ubuntu-20.04'
run: python3 -m pip install mockito
- name: Install requirements for testing (from Ubuntu packages)
if: matrix.os != 'ubuntu-20.04'
run: sudo apt-get install python3-mockito
- name: Run tests
run: python3 -m unittest tests

0 comments on commit 830913e

Please sign in to comment.