Skip to content

Commit c623d9b

Browse files
committed
#44: adding tests for github actions
1 parent a0e6f53 commit c623d9b

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Build
22

3-
on:
4-
push:
5-
branches:
6-
- main
3+
on: push
74

85
jobs:
96
build:
@@ -13,17 +10,28 @@ jobs:
1310
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
1411
steps:
1512
- uses: actions/checkout@v4
13+
1614
- name: Set up Python ${{ matrix.python-version }}
1715
uses: actions/setup-python@v5
1816
with:
1917
python-version: ${{ matrix.python-version }}
18+
2019
- name: Install dependencies
2120
run: |
2221
sudo apt-get install -y python3-sphinx sphinx-rtd-theme-common
2322
pip install sphinx_rtd_theme recommonmark
23+
2424
- name: Check package install
2525
run: |
2626
pip install .
27+
28+
- name: Run tests
29+
run: pytest -m unit --cov=wfcommons tests/
30+
31+
- name: Upload coverage
32+
if: github.ref == 'refs/heads/main'
33+
uses: codecov/codecov-action@v4
34+
2735
- name: Build documentation
2836
run: |
2937
cd docs

0 commit comments

Comments
 (0)