Skip to content

Commit a34bfb7

Browse files
committed
wip
mypy can fail cross platform E.G. os.O_BINARY is a windows exclusive flag; mypy will fail if testing on ubuntu or macos
1 parent 2ca7567 commit a34bfb7

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ on:
3333
test-path:
3434
type: string
3535
default: "./tests"
36+
mypy_runners:
37+
type: string
38+
default: '["ubuntu-latest"]'
3639

3740

3841

@@ -58,6 +61,7 @@ jobs:
5861
fail-fast: ${{ inputs.fail-fast }}
5962
mypy-config: "pyproject.toml"
6063
package: ${{ inputs.package }}
64+
runners: ${{ inputs.mypy_runners || inputs.runners }}
6165
pylint:
6266
uses: MAK-Relic-Tool/Workflows/.github/workflows/pylint.yml@main
6367
with:

.github/workflows/mypy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,24 @@ on:
1818
python-versions:
1919
type: string
2020
default: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
21+
runners:
22+
type: string
23+
default: '["ubuntu-latest"]'
2124
fail-fast:
2225
type: boolean
2326
default: true
2427

2528
jobs:
2629
mypy:
27-
runs-on: ubuntu-latest
30+
runs-on: ${{ matrix.runner }}
2831

2932
strategy:
3033
fail-fast: ${{ inputs.fail-fast }}
3134
matrix:
3235
python-version: ${{ fromJSON(inputs.python-versions) }}
36+
runner: ${{ fromJSON(inputs.runners) }}
3337

34-
name: MyPy (Python ${{ matrix.python-version }})
38+
name: MyPy (Python ${{ matrix.python-version }} [${{ matrix.runner }}])
3539

3640
steps:
3741
- name: Checkout Repo

0 commit comments

Comments
 (0)