-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add testing for class_refactoring_pyside6-testing branch
- Loading branch information
1 parent
caa682f
commit f46191a
Showing
1 changed file
with
100 additions
and
0 deletions.
There are no files selected for viewing
100 changes: 100 additions & 0 deletions
100
.github/workflows/class_refactoring_pyside6-testing.yml
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
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() }} |