-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (43 loc) · 1.3 KB
/
build.yml
File metadata and controls
52 lines (43 loc) · 1.3 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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11", "3.12", "3.13", "3.14" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-sphinx
pip install -r docs/requirements.txt
pip install pytest pytest-cov
pip install --upgrade setuptools
- name: Install utilities for testing
run: |
sudo apt-get update
sudo apt-get install stress-ng
sudo apt-get install graphviz libgraphviz-dev
pip install docker
pip install pygraphviz
pip install pydot
- name: Check package install
run: |
pip install .
- name: Run tests
run: python3 -m pytest -s -v -m unit --cov=wfcommons tests
- name: Upload coverage
if: github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build documentation
run: |
cd docs
make html