Amended CI script to hopefully work with merge trains correctly.
@@ -26,10 +26,18 @@ variables:
RUN_SLOW_TESTS: "true"
OWNER: "nekokatt"
+.merge_request_testing: &merge_request_testing
+ only:
+ - branches
+ - merge_requests
+ - tags
+ - schedules
+
###
### TEMPLATE TO RUN PYTEST.
###
.pytest:
+ <<: *merge_request_testing
allow_failure: false
stage: test
script:
@@ -70,6 +78,7 @@ py38:
### This only runs for merge requests.
###
verify:
+ <<: *merge_request_testing
stage: verify
allow_failure: false
image: python:3-alpine
@@ -87,6 +96,7 @@ verify:
### VERIFY THAT SETUP.PY IS VALID.
###
setup.py:
+ <<: *merge_request_testing
stage: verify
allow_failure: false
image: python:3-alpine
@@ -200,6 +210,7 @@ deploy-to-prod:
### GENERATE DOCUMENTATION WITHOUT DEPLOYING PAGES TO GITLAB PAGES.
###
pages-test:
+ <<: *merge_request_testing
stage: pages
extends: .pages
except:
