-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NCAR:main' into update_colors
- Loading branch information
Showing
37 changed files
with
629 additions
and
77 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 |
---|---|---|
|
@@ -8,47 +8,35 @@ on: | |
- cron: '0 0 * * *' # Daily “At 00:00” | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: Python (${{ matrix.python-version }}, ${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ "ubuntu-latest", "macos-latest", "macos-14", "windows-latest"] | ||
python-version: [ "3.9", "3.11", "3.12" ] | ||
os: [ "ubuntu-latest", "macos-latest", "windows-latest"] | ||
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ github.token }} | ||
- name: conda_setup | ||
uses: conda-incubator/setup-miniconda@v3 | ||
if: matrix.os != 'macos-14' | ||
with: | ||
activate-environment: geocat_viz_build | ||
channel-priority: strict | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
environment-file: build_envs/environment.yml | ||
- name: conda_setup_m1 | ||
|
||
- name: environment setup | ||
uses: conda-incubator/setup-miniconda@v3 | ||
if: matrix.os == 'macos-14' | ||
with: | ||
installer-url: https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-MacOSX-arm64.sh | ||
activate-environment: geocat_viz_build | ||
channel-priority: strict | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
environment-file: build_envs/environment.yml | ||
|
||
- name: Install geocat-viz | ||
run: | | ||
python -m pip install . --no-deps | ||
|
@@ -57,6 +45,10 @@ jobs: | |
run: | | ||
conda list | ||
- name: tests | ||
run: | | ||
python -m pytest | ||
link-check: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
|
@@ -65,22 +57,24 @@ jobs: | |
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ github.token }} | ||
- name: conda_setup | ||
|
||
- name: environment setup | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
activate-environment: gv-docs | ||
channel-priority: strict | ||
python-version: 3.9 | ||
channels: conda-forge | ||
environment-file: build_envs/docs.yml | ||
|
||
- name: Install geocat-viz | ||
run: | | ||
python -m pip install . | ||
- name: check conda list | ||
run: | | ||
conda list | ||
- name: Make docs with linkcheck | ||
run: | | ||
cd docs | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ docs/_build/ | |
dist/ | ||
.eggs/ | ||
*egg-info | ||
|
||
# IDEs | ||
settings.json |
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,22 +1,28 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-yapf # To format the code to conform YAPF | ||
rev: v0.31.0 | ||
- repo: https://github.com/google/yapf # To format the code to conform YAPF | ||
rev: v0.40.2 | ||
hooks: | ||
- id: yapf | ||
args: ['--in-place', '--recursive', '--style', 'google'] | ||
require_serial: true | ||
|
||
- repo: https://github.com/myint/docformatter # To format the doc strings to conform PEP257 | ||
rev: v1.4 | ||
- repo: https://github.com/PyCQA/docformatter # To format the doc strings to conform PEP257 | ||
rev: v1.7.5 | ||
hooks: | ||
- id: docformatter | ||
args: [--in-place] | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks # Some common pre-commit hooks | ||
rev: v3.4.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-yaml # Checks the syntax of .yaml files. | ||
args: [--allow-multiple-documents] | ||
exclude: 'meta.yaml' # Exclude this because it gives an error for '%' in Line 1 and couldn't fix yet | ||
- id: end-of-file-fixer # Makes sure files end with a newline. | ||
- id: trailing-whitespace # Checks for any tabs or spaces after the last non-whitespace character on the line. | ||
- id: check-docstring-first # Checks that code comes after the docstrings. | ||
- id: check-yaml # Check valid yml file | ||
|
||
ci: | ||
autofix_prs: false | ||
autoupdate_schedule: monthly |
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,18 @@ | ||
include LICENSE | ||
include README.md | ||
|
||
recursive-include geocat *.py | ||
recursive-exclude * __pycache__ | ||
recursive-exclude * *.py[co] | ||
exclude .gitignore | ||
exclude .pre-commit-config.yaml | ||
exclude .readthedocs.yml | ||
|
||
include *.md | ||
include *.toml | ||
include *.yaml | ||
include *.txt | ||
prune test* | ||
prune .github* | ||
prune docs* | ||
prune build_envs* |
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.