Commit 32f25f01 authored by Nikola Balog's avatar Nikola Balog

Update .gitlab-ci.yml

parent d16b61f6
Pipeline #40223 failed with stages
in 0 seconds
...@@ -19,15 +19,46 @@ lint: ...@@ -19,15 +19,46 @@ lint:
- if: '$CI_MERGE_REQUEST_ID' # Run for merge requests - if: '$CI_MERGE_REQUEST_ID' # Run for merge requests
- if: '$CI_COMMIT_BRANCH == "master"' # Run on master branch - if: '$CI_COMMIT_BRANCH == "master"' # Run on master branch
build_and_test: build_and_test_3_9:
stage: test stage: test
image: python:${PYTHON_VERSION}
needs: [lint] needs: [lint]
parallel: image: python:3.9 # Using a specific Python version
matrix: before_script:
- PYTHON_VERSION: "3.9" - apt update && apt install -y curl
- PYTHON_VERSION: "3.10" - curl -LsSf https://astral.sh/uv/install.sh | sh
- PYTHON_VERSION: "pypy-3.10" - echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.profile
- source ~/.profile
- uv sync --all-extras --dev
- uv tool install mypy
- uv tool install ruff
script:
- uv run pytest -v -s tests/
rules:
- if: '$CI_MERGE_REQUEST_ID' # Run for merge requests
- if: '$CI_COMMIT_BRANCH == "master"' # Run on master branch
build_and_test_3_10:
stage: test
needs: [lint]
image: python:3.10 # Using a specific Python version
before_script:
- apt update && apt install -y curl
- curl -LsSf https://astral.sh/uv/install.sh | sh
- echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.profile
- source ~/.profile
- uv sync --all-extras --dev
- uv tool install mypy
- uv tool install ruff
script:
- uv run pytest -v -s tests/
rules:
- if: '$CI_MERGE_REQUEST_ID' # Run for merge requests
- if: '$CI_COMMIT_BRANCH == "master"' # Run on master branch
build_and_test_pypy:
stage: test
needs: [lint]
image: python:pypy-3.10 # Using PyPy version
before_script: before_script:
- apt update && apt install -y curl - apt update && apt install -y curl
- curl -LsSf https://astral.sh/uv/install.sh | sh - curl -LsSf https://astral.sh/uv/install.sh | sh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment