-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start testing with common Ubuntu packages as dependencies
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
.github/workflows/test.yml → .github/workflows/test-pypa-ubuntu.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |