-
Notifications
You must be signed in to change notification settings - Fork 58
39 lines (29 loc) · 1.15 KB
/
boefjes-tests.yml
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: Boefjes Test (with coverage)
on:
workflow_call:
jobs:
Tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- name: Install pip
run: python3 -m pip install --upgrade pip wheel
- name: Install dev requirements
run: grep -v git+https:// requirements-dev.txt | pip install -r /dev/stdin && grep git+https:// requirements-dev.txt | pip install -r /dev/stdin
working-directory: boefjes/
- name: Install plugin requirements
run: find boefjes/plugins/ -name requirements.txt -execdir pip install -r requirements.txt \;
working-directory: boefjes/
- name: Install Octopoes
run: cd octopoes && python setup.py bdist_wheel && pip install dist/octopoes*.whl
- name: Run pytests
run: python3 -m pytest --cov boefjes/ --cov-report xml --cov-branch boefjes/tests
- name: Upload coverage as artifact
uses: actions/upload-artifact@v4
with:
name: boefjes-coverage-unit
path: coverage.xml