Skip to content

Commit

Permalink
[CI/docs] hotfix for Jenkins and docs to not use setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
auphelia committed Oct 6, 2023
1 parent 52d7fc2 commit 13313c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docker/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ node {
parallel firstBranch: {
stage('Brevitas export') {
dir("${env.WORKSPACE}") {
sh("bash run-docker.sh python setup.py test --addopts -mbrevitas_export")
sh("bash run-docker.sh pytest -mbrevitas_export")
}
}
}, secondBranch: {
stage('Streamlining transformations') {
dir("${env.WORKSPACE}") {
sh("bash run-docker.sh python setup.py test --addopts -mstreamline")
sh("bash run-docker.sh pytest -mstreamline")
}
}
}, thirdBranch: {
stage('Util functions') {
dir("${env.WORKSPACE}") {
sh("bash run-docker.sh python setup.py test --addopts -mutil")
sh("bash run-docker.sh pytest -mutil")
}
}
}, fourthBranch: {
stage('General transformations') {
dir("${env.WORKSPACE}") {
sh("bash run-docker.sh python setup.py test --addopts -mtransform")
sh("bash run-docker.sh pytest -mtransform")
}
}
}, fifthBranch: {
stage('Fpgadataflow transformations and simulations') {
dir("${env.WORKSPACE}") {
sh("bash run-docker.sh python setup.py test --addopts -mfpgadataflow")
sh("bash run-docker.sh pytest -mfpgadataflow")
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/finn/developers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ from the FINN root directory as follows:
If you want to run tests in parallel (e.g. to take advantage of a multi-core CPU)
you can use:

* pytest-parallel for any rtlsim tests, e.g. `python setup.py test --addopts "-k rtlsim --workers auto"`
* pytest-xdist for anything else, make sure to add `--dist=loadfile` if you have tests in the same file that have dependencies on each other e.g. `python setup.py test --addopts "-k mytest -n auto --dist=loadfile"`
* pytest-parallel for any rtlsim tests, e.g. `pytest -k rtlsim --workers auto`
* pytest-xdist for anything else, make sure to add `--dist=loadfile` if you have tests in the same file that have dependencies on each other e.g. `pytest -k mytest -n auto --dist=loadfile`

Finally, the full test suite with appropriate parallelization can be run inside the container by:

Expand Down

0 comments on commit 13313c2

Please sign in to comment.