-
Notifications
You must be signed in to change notification settings - Fork 778
57 lines (49 loc) · 1.43 KB
/
test-stubs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test Stubs
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_call:
permissions: read-all
jobs:
Python:
name: core / Python ${{ matrix.ver }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
ver: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
include:
- os: macos-latest
ver: "3.13"
- os: macos-latest
ver: "3.12"
- os: macos-latest
ver: "3.11"
- os: macos-latest
ver: "3.10"
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Set up Python
uses: actions/setup-python@75f3110429a8c05be0e1bf360334e4cced2b63fa # v2.3.3
with:
python-version: ${{ matrix.ver }}
- name: Install Python ${{ matrix.ver }} dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install pytest build "mypy<1.9" pytest-mypy-plugins
- name: Install metaflow
run: pip install .
- name: Install metaflow-stubs
run: metaflow develop stubs install --force
- name: Run mypy tests
uses: nick-fields/retry@v2
with:
max_attempts: 2
timeout_minutes: 3
retry_on: error
command: cd ./stubs && pytest --mypy-ini-file test/setup.cfg --mypy-only-local-stub && cd -