Skip to content

Commit

Permalink
Split unit tests and type checking into different workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoran56 committed Dec 21, 2023
1 parent ea51913 commit e5d7c90
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/type-checking.yml
@@ -0,0 +1,25 @@
name: type checking

on:
push:
pull_request:


jobs:
typechecking:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12-dev' ]
steps:
- name: Python ${{ matrix.python-version }} ${{ matrix.os }}
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install mypy
run: pip install mypy
- name: Run mypy
run: mypy -v esper
17 changes: 0 additions & 17 deletions .github/workflows/unit-tests.yml
Expand Up @@ -23,20 +23,3 @@ jobs:
run: pip install pytest
- name: Run tests
run: pytest -v tests
typechecking:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12-dev' ]
steps:
- name: Python ${{ matrix.python-version }} ${{ matrix.os }}
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install mypy
run: pip install mypy
- name: Run mypy
run: mypy -v esper

0 comments on commit e5d7c90

Please sign in to comment.