Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 2336357c authored by Dorian Turba's avatar Dorian Turba
Browse files

review ci

parent e681cafc
Branches ci_fix
No related tags found
1 merge request!2Ci fix
Pipeline #37529 failed
......@@ -14,7 +14,6 @@ default:
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
PIP_REGISTRY: https://gitlab-ci-token:${CI_JOB_TOKEN}@lab.frogg.it/api/v4/projects/1427/packages/pypi/simple
TAG_RELEASE_REGEX: '/^[\d]{1,2}\.[\d]{1,2}\.[\d]{1,2}(\.[\d]{1,2})?$/'
########################### RULES ################################
.package_rules: &package_rules
......@@ -22,10 +21,7 @@ variables:
- if: $CI_COMMIT_BRANCH == "main"
changes:
- src/*
.container_rules: &container_rules
rules:
- if: $CI_COMMIT_TAG && $CI_COMMIT_TAG =~ $TAG_RELEASE_REGEX
- pyproject.toml
########################### STAGES ################################
stages:
......@@ -37,7 +33,7 @@ stages:
"Linter":
stage: code quality
before_script:
- pip install -r requirements/quality.txt
- pip install ruff
script:
- ruff check --output-format=gitlab src/fake_session_maker/fsm.py
only:
......@@ -48,7 +44,7 @@ stages:
"Tests":
stage: tests
before_script:
- pip install -r requirements/tests.txt
- pip install pytest
script:
- pytest
only:
......
#
# This file is autogenerated by pip-compile
# by the following command:
#
# pip-compile --allow-unsafe --extra=quality --output-file=requirements/quality.txt --strip-extras pyproject.toml
#
ruff==0.4.4
\ No newline at end of file
#
# This file is autogenerated by pip-compile
# by the following command:
#
# pip-compile --allow-unsafe --extra=quality --output-file=requirements/quality.txt --strip-extras pyproject.toml
#
pytest==8.2.0
\ No newline at end of file
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