Skip to content

Commit 44e1904

Browse files
committed
ci: moved typechecking to seperate job
1 parent c9bf820 commit 44e1904

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build:
11-
name: Test on ${{ matrix.os }} (py-${{ matrix.python_version }})
10+
test:
11+
name: test on ${{ matrix.os }} (py-${{ matrix.python_version }})
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
fail-fast: false
@@ -53,3 +53,29 @@ jobs:
5353
with:
5454
name: aw-watcher-window-${{ runner.os }}-py${{ matrix.python_version }}
5555
path: dist/aw-watcher-window
56+
57+
typecheck:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
with:
62+
submodules: 'recursive'
63+
- name: Set up Python
64+
uses: actions/setup-python@v1
65+
with:
66+
python-version: ${{ matrix.python_version }}
67+
- name: Create virtualenv
68+
shell: bash
69+
run: |
70+
python -m venv venv
71+
- name: Install dependencies
72+
shell: bash
73+
run: |
74+
pip install poetry
75+
source venv/bin/activate || source venv/Scripts/activate
76+
poetry install
77+
- name: Typecheck
78+
shell: bash
79+
run: |
80+
source venv/bin/activate || source venv/Scripts/activate
81+
make typecheck

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ build:
55

66
test:
77
aw-watcher-window --help
8-
python -m mypy aw_watcher_window/ --ignore-missing-imports
8+
9+
typecheck:
10+
poetry run mypy aw_watcher_window/ --ignore-missing-imports
911

1012
package:
1113
pyinstaller aw-watcher-window.spec --clean --noconfirm

0 commit comments

Comments
 (0)