change workflow of ci for faster results
All checks were successful
ci/woodpecker/push/tests Pipeline was successful
ci/woodpecker/pr/tests Pipeline was successful
ci/woodpecker/pr/test_release Pipeline was successful
ci/woodpecker/pr/test_docker Pipeline was successful
ci/woodpecker/pr/test_tox_amd64 Pipeline was successful
ci/woodpecker/pr/test_tox_arm64 Pipeline was successful

This commit is contained in:
Ivan Schaller 2022-06-26 19:02:46 +02:00
parent 0a8f1f8e73
commit 6e0149b422
3 changed files with 57 additions and 23 deletions

View file

@ -36,26 +36,3 @@ pipeline:
commands: commands:
- bash get_release_notes.sh 2.1.9 - bash get_release_notes.sh 2.1.9
- cat RELEASENOTES.md - cat RELEASENOTES.md
# test code with different python versions - amd64
test-tox-amd64:
when:
branch: master
event: pull_request
image: cr.44net.ch/ci-plugins/multipy:1-linux-amd64
pull: true
commands:
- tox
# test code with different python versions - arm64
test-tox-arm64:
when:
branch: master
event: pull_request
image: cr.44net.ch/ci-plugins/multipy:1-linux-arm64
pull: true
commands:
- grep -v img2pdf contrib/requirements_dev.txt > contrib/requirements_dev_arm64.txt
- rm -f contrib/requirements_dev.txt
- mv contrib/requirements_dev_arm64.txt contrib/requirements_dev.txt
- tox

View file

@ -0,0 +1,27 @@
##################
# test tox amd64 #
##################
# branch: master
# event: pull_request
depends_on:
- tests
clone:
git:
when:
branch: master
event: pull_request
image: woodpeckerci/plugin-git
pipeline:
# test code with different python versions - amd64
test-tox-amd64:
when:
branch: master
event: pull_request
image: cr.44net.ch/ci-plugins/multipy:1-linux-amd64
pull: true
commands:
- tox

View file

@ -0,0 +1,30 @@
##################
# test tox arm64 #
##################
# branch: master
# event: pull_request
depends_on:
- tests
clone:
git:
when:
branch: master
event: pull_request
image: woodpeckerci/plugin-git
pipeline:
# test code with different python versions - arm64
test-tox-arm64:
when:
branch: master
event: pull_request
image: cr.44net.ch/ci-plugins/multipy:1-linux-arm64
pull: true
commands:
- grep -v img2pdf contrib/requirements_dev.txt > contrib/requirements_dev_arm64.txt
- rm -f contrib/requirements_dev.txt
- mv contrib/requirements_dev_arm64.txt contrib/requirements_dev.txt
- tox