Skip to content

Commit

Permalink
Check types in a separate CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Dec 15, 2023
1 parent 8c6705e commit 4913d5e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/main.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: test

on:
push:
Expand All @@ -13,6 +13,28 @@ concurrency:
cancel-in-progress: true

jobs:
types:
name: Types
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Check types
run: |
pip install hatch
hatch run dev.jupyterlab-noauth:typecheck
hatch run dev.jupyterlab-auth:typecheck
hatch run dev.jupyterlab-auth_fief:typecheck
hatch run dev.retrolab-noauth:typecheck
hatch run dev.retrolab-auth:typecheck
hatch run dev.retrolab-auth_fief:typecheck
test:
name: Test
runs-on: ${{ matrix.os }}
Expand All @@ -39,15 +61,6 @@ jobs:
pip install hatch
hatch env create dev.jupyterlab-auth
- name: Check types
run: |
hatch run dev.jupyterlab-noauth:typecheck
hatch run dev.jupyterlab-auth:typecheck
hatch run dev.jupyterlab-auth_fief:typecheck
hatch run dev.retrolab-noauth:typecheck
hatch run dev.retrolab-auth:typecheck
hatch run dev.retrolab-auth_fief:typecheck
- name: Run tests
run: |
hatch run dev.jupyterlab-auth:test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://github.com/jupyter-server/jupyverse/workflows/CI/badge.svg)](https://github.com/jupyter-server/jupyverse/actions)
[![Build Status](https://github.com/jupyter-server/jupyverse/workflows/test/badge.svg)](https://github.com/jupyter-server/jupyverse/actions)

# jupyverse

Expand Down

0 comments on commit 4913d5e

Please sign in to comment.