forked from MinoMino/minqlx-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.16 KB
/
test-ubuntu.yml
File metadata and controls
39 lines (34 loc) · 1.16 KB
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
name: Tests (Ubuntu packages)
on: [workflow_call]
jobs:
test:
strategy:
matrix:
os: ["ubuntu-24.04", "ubuntu-22.04"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Set up Redis server
run: sudo apt-get update && sudo apt-get install redis
- 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
run: sudo apt-get install python3-mockito python3-coverage
- name: Create symlinks for testing
run: |
ln -s tests/_minqlx.py
ln -s tests/minqlx_plugin_test
ln -s tests/minqlx-repo/python/minqlx
- name: Run tests
run: python3-coverage run -m unittest tests
- name: Make coverage report
run: python3-coverage xml
- name: Upload coverage report as artifact
uses: actions/upload-artifact@v4
with:
name: coverage - apt - ubuntu - ${{ matrix.os }}.xml
path: coverage.xml