Skip to content
Snippets Groups Projects
Commit f6cda5fd authored by Robert Rosca's avatar Robert Rosca Committed by Karim Ahmed
Browse files

ci: use `default` section to configure `before_script`

parent 02943f05
No related branches found
No related tags found
1 merge request!984Try updating to Python 3.11 & update all deps
......@@ -3,7 +3,7 @@ stages:
- test
- automated_test
.before_script: &before_script
default:
before_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_GITLAB" | tr -d '\r' | ssh-add -
......@@ -25,7 +25,6 @@ checks:
stage: check
only: [merge_requests]
allow_failure: true
<<: *before_script
script:
- export PATH=/home/gitlab-runner/.local/bin:$PATH
# We'd like to run the pre-commit hooks only on files that are being
......@@ -42,7 +41,6 @@ checks:
pytest:
stage: test
only: [merge_requests]
<<: *before_script
script:
- export LANG=C # Hopefully detect anything relying on locale
- python3 -m pip install ".[test]"
......@@ -66,7 +64,6 @@ automated_test:
allow_failure: false
tags:
- integration
<<: *before_script
script:
- export LANG=C # Hopefully detect anything relying on locale
- python3 -m pip install ".[test]"
......@@ -78,7 +75,6 @@ automated_test:
cython-editable-install-test:
stage: test
only: [merge_requests]
<<: *before_script
script:
- python3 -m pip install -e ".[test]"
- python3 -m pytest --color yes --verbose ./tests/test_cythonalgs.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment