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:
- if: '$CI_MERGE_REQUEST_ID' # Run for merge requests
- if: '$CI_COMMIT_BRANCH == "master"' # Run on master branch
build_and_test:
build_and_test_3_9:
stage: test
image: python:${PYTHON_VERSION}
needs: [lint]
parallel:
matrix:
- PYTHON_VERSION: "3.9"
- PYTHON_VERSION: "3.10"
- PYTHON_VERSION: "pypy-3.10"
image: python:3.9 # 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_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:
- apt update && apt install -y curl
- 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