Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check types in a separate CI job #373

Merged
merged 1 commit into from
Dec 15, 2023
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
49 changes: 31 additions & 18 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,8 +13,31 @@ 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: Install hatch
run: |
python3 -m pip install --upgrade pip
python3 -m pip install hatch
- 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

test:
name: Test
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -31,23 +54,13 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Upgrade pip
run: python3 -m pip install --upgrade pip

- name: Create jupyterlab-auth dev environment
- name: Install hatch
run: |
pip install hatch
hatch env create dev.jupyterlab-auth
python3 -m pip install --upgrade pip
python3 -m pip install hatch

- 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: Create jupyterlab-auth dev environment
run: hatch env create dev.jupyterlab-auth

- name: Run tests
run: |
hatch run dev.jupyterlab-auth:test
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
Loading