-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Unit and Documentation Build Tests (#306)
* Add test dependencies to setup.cfg * Add tox configuration * Add unit tests for process module while fixing various bugs * Add unit tests for config module while fixing various bugs * Add testing caches to gitgnore * Add unit testing GHA workflow * Add documentation test workflow * Suppress mathjax warning from myst-parser plugin * Add documentation page on testing practices * Modify sphinx build to re-run notebooks on build * Modify adding_workloads notebook to run on Azure * Remove needed ok-to-test label, as no need * Add manifest to force including version.txt * Add missing coverage configuration to tox * Remove '_source' directory from html_static_path * Add information on docstring tests * Remove extra space * Add export for benchmark operator image for ripsaw cli * Add coveragerc file * Add python 3.9 to doc and unit tests * Use matrix for parallel runs * Add missing needs to coverage_report job * Fix issues preventing coverage report job from running * Replace uppercase P with lowercase p in pip command * Add retry and timeout to linkcheck build * Increase timeout and retries for linkcheck * Change links in unit testing page from SFT to guru99 * Add pretty name for jobs * Don't use coverage combine across python versions Not needed, as we have same tests for each python version We expect that the coverage will remain the same regardless of the python version * Only upload coverage report for python 3.6 * Add missing install for coverage package * Use tox coverage environment to generate reports
- Loading branch information
Ryan Drew
authored
Aug 9, 2021
1 parent
63f1d9b
commit ac3ccf8
Showing
16 changed files
with
759 additions
and
320 deletions.
There are no files selected for viewing
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,6 @@ | ||
[run] | ||
omit = | ||
snafu/benchmarks/*/* | ||
**/*_wrapper* | ||
**/trigger* | ||
**/__init__.py |
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,24 @@ | ||
name: Documentation Build Test | ||
on: | ||
- push | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
jobs: | ||
build_docs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
pyver: [6, 7, 8, 9] | ||
name: Run Doc Tests -- Python 3.${{ matrix.pyver }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install build dependencies | ||
run: sudo apt-get install -y pandoc | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.${{ matrix.pyver }} | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Run Tox | ||
run: tox -e py3${{ matrix.pyver }}-docs |
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,33 @@ | ||
name: Unit Tests | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
unit_tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
pyver: [6, 7, 8, 9] | ||
name: Run Unit Tests -- Python 3.${{ matrix.pyver }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.${{ matrix.pyver }} | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Run Tox | ||
run: tox -e py3${{ matrix.pyver }}-unit | ||
- name: Generate coverage report | ||
if: matrix.pyver == 6 | ||
run: tox -e coverage | ||
- name: Upload coverage report | ||
if: matrix.pyver == 6 | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: ./coverage.xml | ||
flags: unit,gha,python-3.${{ matrix.pyver }} |
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
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 @@ | ||
include version.txt |
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
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
Oops, something went wrong.