-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (35 loc) · 1.02 KB
/
python-test.yaml
File metadata and controls
38 lines (35 loc) · 1.02 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
name: Python Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Load NBD kernel module
run: |
sudo modprobe nbd
sudo lsmod
- name: Install qemu-utils
run: |
sudo apt update -y
sudo apt install -y qemu-utils
- name: Install dependencies
run: |
pip install poetry
poetry install --with test --no-root
sudo apt-get install john hashcat
- name: Test with pytest - ${{ matrix.python-version }}
run: |
poetry run pytest --cov=. --cov-branch --cov-report=xml -v
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: openrelik/openrelik-worker-common