-
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.
Merge pull request #16 from NOAA-PSL/develop
Updating the pytesting and index framework
- Loading branch information
Showing
10 changed files
with
1,067 additions
and
267 deletions.
There are no files selected for viewing
22 changes: 12 additions & 10 deletions
22
.github/workflows/gha_pytest.yml → .github/workflows/gha_pytest_pr.yml
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 |
---|---|---|
@@ -1,27 +1,29 @@ | ||
name: PR pytest checking | ||
name: PR pytest unittest | ||
|
||
on: | ||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- main | ||
paths: | ||
- './' | ||
branches: | ||
- develop | ||
- main | ||
|
||
jobs: | ||
checking_json: | ||
runs-on: ubuntu-20.04 | ||
unittest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba ${{ matrix.python-version }} | ||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: regional_mom6.yml | ||
init-shell: bash | ||
|
||
- name: Setup package config file | ||
shell: bash -l {0} | ||
run: cp config.json.template config.json | ||
|
||
- name: pytesting | ||
shell: bash -l {0} | ||
run: pytest |
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,29 @@ | ||
name: push pytest unittest | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
|
||
jobs: | ||
unittest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: regional_mom6.yml | ||
init-shell: bash | ||
|
||
- name: Setup package config file | ||
shell: bash -l {0} | ||
run: cp config.json.template config.json | ||
|
||
- name: pytesting | ||
shell: bash -l {0} | ||
run: pytest |
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
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
Oops, something went wrong.