Skip to content

Commit

Permalink
Fix pytest CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
  • Loading branch information
stv0g committed Jun 17, 2024
1 parent 0e89379 commit 2281949
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/pytest.yaml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Pytest

on:
push:
branches:
- master
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Install Graphviz
shell: bash
run: |
sudo apt-get -y install graphviz
- name: Install Python dependencies
run: |
pip install .[dev,doc]
- name: Run pytest
run: |
pytest -v -cov --junitxml=report.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: pytest-results
path: ../cimpy/cimpy/report.xml
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ dev = [
"pytest-check"
]

doc = [
"sphinx",
"sphinx_rtd_theme"
]

[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
Expand Down

0 comments on commit 2281949

Please sign in to comment.