-
Notifications
You must be signed in to change notification settings - Fork 354
36 lines (33 loc) · 1021 Bytes
/
codegen.yml
File metadata and controls
36 lines (33 loc) · 1021 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
34
35
36
name: Code generation
on:
schedule:
- cron: '0 8 * * *' # run at 8 AM UTC (12 am PST)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
codegen:
name: Test code generation
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ "3.10", "3.11", "3.12" ]
ref: ["develop", "master", "6.4.1", "6.4.0"]
defaults:
run:
shell: bash -l {0}
timeout-minutes: 60
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Setup Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v7
with:
cache-dependency-glob: "**/pyproject.toml"
python-version: ${{ matrix.python-version }}
- name: Install FloPy
run: uv sync --extra test
- name: Generate classes
run: uv run python -m flopy.mf6.utils.generate_classes --ref ${{ matrix.ref }}