-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
15,898 additions
and
57 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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
name: ioos-metrics | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.13 | ||
- bs4 | ||
- ckanapi | ||
- fake-useragent | ||
- fiscalyear | ||
- geopandas>=0.13.2 | ||
- gliderpy | ||
- html5lib | ||
- joblib | ||
- lxml | ||
- nbclassic | ||
- pandas | ||
- pdfminer.six | ||
- pyarrow | ||
- pyobis | ||
- pytest | ||
- requests | ||
- suds | ||
- pip | ||
- pip: | ||
- git+https://github.com/ioos/ioos_metrics.git | ||
name: ioos-metrics | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.12 | ||
- bs4 | ||
- ckanapi | ||
- fake-useragent | ||
- fiscalyear | ||
- geopandas>=0.13.2 | ||
- gliderpy | ||
- html5lib | ||
- joblib | ||
- lxml | ||
- nbclassic | ||
- pandas | ||
- pdfminer.six | ||
- pyarrow | ||
- pyobis | ||
- pytest | ||
- requests | ||
- suds | ||
- pip | ||
- pip: | ||
- git+https://github.com/ioos/ioos_metrics.git |
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,2 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML linguist-generated=true |
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 |
---|---|---|
|
@@ -23,11 +23,11 @@ jobs: | |
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Pixi | ||
uses: prefix-dev/[email protected] | ||
with: | ||
init-shell: bash | ||
environment-file: environment.yml | ||
manifest-path: pyproject.toml | ||
|
||
- name: echo secrets into a file | ||
shell: bash -l {0} | ||
|
@@ -41,10 +41,8 @@ jobs: | |
- name: Collect quarterly GTS and BTN metrics | ||
shell: bash -l {0} | ||
run: > | ||
python btn_metrics.py | ||
&& python gts_regional_metrics.py | ||
&& python gts_atn_metrics.py | ||
run: | | ||
pixi run metrics | ||
- name: Get current date | ||
run: echo "NOW=$(date -u)" >> ${GITHUB_ENV} | ||
|
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 |
---|---|---|
|
@@ -12,14 +12,13 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Pixi | ||
uses: prefix-dev/[email protected] | ||
with: | ||
init-shell: bash | ||
environment-file: environment.yml | ||
environment-name: TEST | ||
manifest-path: pyproject.toml | ||
|
||
- name: Tests | ||
shell: bash -l {0} | ||
run: | | ||
python -m pytest -rxs tests | ||
pixi run tests |
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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
# Run the metrics notebook | ||
|
||
## How to run | ||
|
||
1. Install pixi: https://pixi.sh/dev/#installation | ||
1. Clone this repository: `git clone https://github.com/ioos/ioos_metrics.git` | ||
1. Enter the repository directory: `cd gider_metrics` | ||
1. Create tne enviroment: `conda env create --name METRICS --file environment.yml` | ||
1. Start the notebook: `jupyter nbclassic` | ||
|
||
## You can also try it on mybinder | ||
|
||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ioos/ioos_metrics/HEAD?labpath=/notebooks/glider_metrics.ipynb) | ||
|
||
|
||
## Or Google Colab | ||
|
||
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ioos/ioos_metrics/blob/main/notebooks/glider_metrics.ipynb) | ||
# Run the metrics notebook | ||
|
||
## How to run | ||
|
||
1. Install pixi: https://pixi.sh/dev/#installation | ||
1. Clone this repository: `git clone https://github.com/ioos/ioos_metrics.git` | ||
1. Enter the repository directory: `cd ioos_metrics` | ||
1. Start the notebook: `pixi run notebook` | ||
|
||
## You can also try it on mybinder | ||
|
||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ioos/ioos_metrics/HEAD?labpath=/notebooks/glider_metrics.ipynb) | ||
|
||
|
||
## Or Google Colab | ||
|
||
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ioos/ioos_metrics/blob/main/notebooks/glider_metrics.ipynb) |
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