check output when changing to CGMES 3 version #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() }} |