Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
python-version: "3.12"
enable-cache: true

- name: Install dev dependencies
run: pip install -e ".[dev]"
run: uv sync --locked --extra dev

- name: Ruff lint
run: ruff check .
run: uv run ruff check .

- name: Ruff format check
run: ruff format --check .
run: uv run ruff format --check .

- name: Mypy
run: mypy floci
run: uv run mypy floci

test-unit:
name: Unit tests (Python ${{ matrix.python-version }})
Expand All @@ -38,31 +39,33 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- name: Install dependencies
run: pip install -e ".[dev]"
run: uv sync --locked --extra dev

- name: Run unit tests (no Docker required)
run: pytest -m "not integration" -v
run: uv run pytest -m "not integration" -v

test-integration:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
python-version: "3.12"
enable-cache: true

- name: Install dependencies
run: pip install -e ".[dev]"
run: uv sync --locked --extra dev

- name: Pull Floci image
run: docker pull floci/floci:latest

- name: Run integration tests
run: pytest -m integration -v --timeout=120
run: uv run pytest -m integration -v --timeout=120
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ dev = [
"mypy>=1.0",
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-timeout>=2.3",
"ruff>=0.4",
]

Expand All @@ -54,7 +55,7 @@ target-version = "py39"
select = ["E", "F", "I", "UP"]

[tool.mypy]
python_version = "3.9"
python_version = "3.10"
strict = true
ignore_missing_imports = true

Expand Down
Loading
Loading