Skip to content

Commit

Permalink
Add testing for class_refactoring_pyside6-testing branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanobrunet committed Dec 3, 2024
1 parent caa682f commit f46191a
Showing 1 changed file with 100 additions and 0 deletions.
100 changes: 100 additions & 0 deletions .github/workflows/class_refactoring_pyside6-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Unit Testing

on:
push:
branches:
- 'class_refactoring_pyside6'


jobs:
# Linux
linux-testing:
name: Linux Unit Testing
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
permissions:
checks: write
pull-requests: write


steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Create Environment from .yml
uses: conda-incubator/setup-miniconda@v2
with:
#mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: pzero-testing
environment-file: envs/std-environment.yml
# python-version: 3.8.16
python-version: 3.8
auto-activate-base: false

- name: Check Conda Dependencies
run: |
conda info
conda list
- name: Test with pytest
run: |
conda install pytest-html
pytest --html=ubu-test-report.html tests/
- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results-ubuntu
path: ubu-test-report.html
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}


# Windows
windows-testing:
name: Windows Unit Testing
runs-on: windows-latest
defaults:
run:
shell: bash -el {0}
permissions:
checks: write
pull-requests: write

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Create Environment from .yml
uses: conda-incubator/setup-miniconda@v2
with:
#mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: pzero-test
environment-file: envs/std-environment.yml
# python-version: 3.8.16
python-version: 3.8
auto-activate-base: false

- name: Check Conda Dependencies
run: |
conda info
conda list
- name: Test with pytest
run: |
conda install pytest-html
pytest --html=win-test-report.html tests/
- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results-win
path: win-test-report.html
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

0 comments on commit f46191a

Please sign in to comment.