-
Notifications
You must be signed in to change notification settings - Fork 32
33 lines (31 loc) · 958 Bytes
/
generator.yml
File metadata and controls
33 lines (31 loc) · 958 Bytes
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
name: flatdata-generator
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-generator
uv run --python ${{ matrix.python-version }} --with pytest pytest -v
- name: Type check
if: contains(fromJSON('["3.10", "3.11", "3.12"]'), matrix.python-version)
run: |
cd flatdata-generator
uv run --python ${{ matrix.python-version }} --with mypy mypy flatdata/