Skip to content

make export tests run #15

make export tests run

make export tests run #15

Workflow file for this run

name: Pytest
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install graphviz
run: sudo apt install graphviz
shell: bash
- name: Install dependencies
run: |
sudo pip3 install --upgrade pip
sudo pip3 install sphinx_rtd_theme
sudo pip3 install sphinx
sudo pip3 install pytest
sudo pip3 install pytest-check
- name: Execute py script
env:
working-directory: ${{runner.workspace}}/cimpy
run: |
sudo python3 setup.py install
- name: Pytest
env:
working-directory: ${{runner.workspace}}/cimpy
run: |
sudo pytest -v -cov --junitxml=report.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results
path: ${{runner.workspace}}/cimpy/report.xml
if: ${{ always() }}