-
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 #14 from ihmeuw/feature/climate-draws-run
Feature/climate draws run
- Loading branch information
Showing
31 changed files
with
1,024 additions
and
785 deletions.
There are no files selected for viewing
14 changes: 6 additions & 8 deletions
14
.github/workflows/release.yml → .github/workflows/build_docs.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,20 +1,18 @@ | ||
name: Release | ||
name: Build and Deploy Docs | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-publish: | ||
build-and-deploy-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
- uses: ./.github/actions/python-poetry-env | ||
- name: Publish to pypi | ||
run: | | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | ||
poetry publish --build --no-interaction | ||
- name: Deploy docs | ||
run: poetry run mkdocs gh-deploy --force |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +0,0 @@ | ||
# Climate Data | ||
|
||
This package contains pipelines and utilities to systematically extract, format, and downscale | ||
data from ERA5 climate models and CMIP6 climate forecasts. | ||
|
||
## Developer Installation | ||
|
||
Instructions using [`conda`](https://docs.anaconda.com/miniconda/): | ||
|
||
1. Clone this repository. | ||
|
||
Over ssh: | ||
```sh | ||
git clone [email protected]:ihmeuw/climate-data.git | ||
``` | ||
|
||
Over https: | ||
```sh | ||
git clone https://github.com/ihmeuw/climate-data.git | ||
``` | ||
|
||
2. Create a new conda environment. | ||
|
||
```sh | ||
conda create -n climate-data python=3.12 | ||
conda activate climate-data | ||
``` | ||
|
||
3. Install `poetry` and the project dependencies. | ||
|
||
```sh | ||
pip install poetry | ||
cd climate-data | ||
poetry install | ||
``` | ||
|
||
### Pre-commit | ||
|
||
[`pre-commit`](https://pre-commit.com/) hooks run all the auto-formatting (`ruff format`), | ||
linters (e.g. `ruff` and `mypy`), and other quality checks to make sure the changeset is | ||
in good shape before a commit/push happens. | ||
|
||
You can install the hooks with (runs for each commit): | ||
|
||
```sh | ||
pre-commit install | ||
``` | ||
|
||
Or if you want them to run only for each push: | ||
|
||
```sh | ||
pre-commit install -t pre-push | ||
``` | ||
|
||
Or if you want e.g. want to run all checks manually for all files: | ||
|
||
```sh | ||
poetry run pre-commit run --all-files | ||
``` | ||
|
||
`pre-commit` is configured in the `.pre-commit-config.yaml` file in the repository root. | ||
All auto-formatting, linting, and other tooling is configured in the `pyproject.toml` file. | ||
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,62 @@ | ||
# Climate Data Pipeline Installation | ||
|
||
This package contains pipelines and utilities to systematically extract, format, and downscale | ||
data from ERA5 climate models and CMIP6 climate forecasts. | ||
|
||
## Developer Installation | ||
|
||
Instructions using [`conda`](https://docs.anaconda.com/miniconda/): | ||
|
||
1. Clone this repository. | ||
|
||
Over ssh: | ||
```sh | ||
git clone [email protected]:ihmeuw/climate-data.git | ||
``` | ||
|
||
Over https: | ||
```sh | ||
git clone https://github.com/ihmeuw/climate-data.git | ||
``` | ||
|
||
2. Create a new conda environment. | ||
|
||
```sh | ||
conda create -n climate-data python=3.12 | ||
conda activate climate-data | ||
``` | ||
|
||
3. Install `poetry` and the project dependencies. | ||
|
||
```sh | ||
pip install poetry | ||
cd climate-data | ||
poetry install | ||
``` | ||
|
||
### Pre-commit | ||
|
||
[`pre-commit`](https://pre-commit.com/) hooks run all the auto-formatting (`ruff format`), | ||
linters (e.g. `ruff` and `mypy`), and other quality checks to make sure the changeset is | ||
in good shape before a commit/push happens. | ||
|
||
You can install the hooks with (runs for each commit): | ||
|
||
```sh | ||
pre-commit install | ||
``` | ||
|
||
Or if you want them to run only for each push: | ||
|
||
```sh | ||
pre-commit install -t pre-push | ||
``` | ||
|
||
Or if you want e.g. want to run all checks manually for all files: | ||
|
||
```sh | ||
poetry run pre-commit run --all-files | ||
``` | ||
|
||
`pre-commit` is configured in the `.pre-commit-config.yaml` file in the repository root. | ||
All auto-formatting, linting, and other tooling is configured in the `pyproject.toml` file. |
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.