forked from modflowpy/flopy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(codegen): move codegen tests to ci job
- Loading branch information
Showing
3 changed files
with
44 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: FloPy code generation | ||
on: | ||
push: | ||
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.9, "3.10", "3.11", "3.12" ] | ||
ref: ["develop", "master", "6.4.1", "4458f9f", "4458f9f7a6244182e6acc2430a6996f9ca2df367"] | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: etc/environment.yml | ||
cache-environment: true | ||
cache-downloads: true | ||
create-args: >- | ||
python=${{ matrix.python-version }} | ||
init-shell: >- | ||
bash | ||
powershell | ||
- name: Install FloPy | ||
run: pip install . | ||
|
||
- name: Generate classes | ||
run: python -m flopy.mf6.utils.generate_classes --ref ${{ matrix.ref }} --no-backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,3 +203,4 @@ jobs: | |
uses: codecov/codecov-action@v5 | ||
with: | ||
files: autotest/coverage.xml | ||
|
This file was deleted.
Oops, something went wrong.