-
Notifications
You must be signed in to change notification settings - Fork 32
38 lines (35 loc) · 1.02 KB
/
py.yml
File metadata and controls
38 lines (35 loc) · 1.02 KB
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
name: flatdata-py
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
env:
CARGO_TERM_COLORS: always
jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
name: Build (Python ${{ matrix.python-version }})
steps:
- uses: actions/checkout@v2
- name: Dependencies
uses: astral-sh/setup-uv@v6
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Run tests
run: |
cd flatdata-py
uv venv --python ${{ matrix.python-version }}
uv pip install ../flatdata-generator
uv pip install ".[inspector]" pytest mypy
.venv/bin/pytest -v
.venv/bin/flatdata-inspector --help
- name: Type check
if: contains(fromJSON('["3.10", "3.11", "3.12"]'), matrix.python-version)
run: |
cd flatdata-py
.venv/bin/mypy flatdata/