Skip to content
Draft
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
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,33 @@
- name: Install dependencies
run: |
uv sync --locked
uv pip install coverage pytest-github-actions-annotate-failures
uv pip install pytest-github-actions-annotate-failures
- run: uv run robotpy test

test-coverage:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "0.6.x"
- name: Install dependencies
run: |
uv sync --locked
- run: uv run robotpy coverage test
- run: uv run coverage xml
- uses: actions/upload-artifact@v4
with:
name: coverage-data
path: |
coverage.xml
.coverage*
include-hidden-files: true

report-coverage:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
needs: [test]
needs: [test-coverage]
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ ignore = [

[tool.uv]
dev-dependencies = [
"coverage>=7.6.10",
"hypothesis>=6.112.1",
"mypy>=1.8.0",
"pytest>=7.2.0",
Expand All @@ -81,7 +82,7 @@ description = "The Drop Bears' FRC 2025 robot code"
authors = [{ name = "The Drop Bears", email = "[email protected]" }]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.12,<3.14"
requires-python = ">=3.13,<3.14"

dependencies = [
"numpy~=2.2",
Expand Down
Loading