Skip to content

Commit

Permalink
Add types check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Aug 6, 2024
1 parent c87a06a commit 7150ff4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,22 @@ jobs:
- name: Test Unit
run: |
pixi run -e ${{ matrix.environment }} test-unit
type_test_suite:
name: lint:${{ matrix.environment }}:${{ matrix.os }}
needs: [pre_commit, setup, pixi_lock]
runs-on: ${{ matrix.os }}
if: needs.setup.outputs.code_change == 'true'
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
environment: ["test-type"]
timeout-minutes: 120
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_install@pixi
with:
environments: ${{ matrix.environment }}
- name: Test Type
run: |
pixi run -e ${{ matrix.environment }} type || echo "Failed"
17 changes: 17 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ test-311 = ["py311", "test-core", "test", "example", "test-example", "test-unit-
test-312 = ["py312", "test-core", "test", "example", "test-example", "test-unit-task"]
test-ui = ["py312", "test-core", "test", "test-ui"]
test-core = ["py312", "test-core", "test-unit-task"]
test-type = ["py311", "type"]
docs = ["py311", "example", "doc"]
build = ["py311", "build"]
lint = ["py311", "lint"]
Expand Down Expand Up @@ -144,6 +145,22 @@ _install-ui = 'playwright install chromium'
cmd = 'pytest panel/tests/ui --ui --browser chromium -n logical --dist loadgroup --reruns 3 --reruns-delay 10'
depends_on = ["_install-ui"]

# =============================================
# ================== TYPES ====================
# =============================================
[feature.type.dependencies]
mypy = "*"
pandas-stubs = "*"
types-bleach = "*"
types-croniter = "*"
types-Markdown = "*"
types-psutil = "*"
types-requests = "*"
types-tqdm = "*"

[feature.type.tasks]
type = 'mypy panel'

# =============================================
# =================== DOCS ====================
# =============================================
Expand Down

0 comments on commit 7150ff4

Please sign in to comment.