Skip to content

Commit

Permalink
ready to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknight committed Mar 21, 2024
1 parent feb8ba4 commit d7c7eaa
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/build-and-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ jobs:
name: ${{ matrix.distribution}}
path: dist/

- name: Publish all distributions to TestPyPI
- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Expand Down Expand Up @@ -396,4 +396,32 @@ jobs:
- name: Run glmpy
run: python run_glmpy.py

publish-to-pypi:
name: Publish distributions to PyPI
needs: [test-windows-wheels-amd64, test-macos-wheels-arm64, test-macos-wheels-x86_64, test-linux-wheels-x86_64]
runs-on: ubuntu-latest
strategy:
matrix:
distribution:
- source-dist
- wheels-manylinux2014-aarch64
- wheels-manylinux2014-x86_64
- wheels-macos-x86_64
- wheels-macos-arm64
- wheels-windows-amd64

environment:
name: pypi
url: https://pypi.org/p/glm-py
permissions:
id-token: write

steps:
- name: Download distribution artifact
uses: actions/download-artifact@v3
with:
name: ${{ matrix.distribution }}
path: dist/

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 0 additions & 2 deletions docs/blog/posts/sparkling-lake-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ If you're want to find out more about the attributes for each block, check out g

### Writing the namelist file

### Writing the namelist file

We now have the attributes set for each block. Let's combine them to create the `.nml` file. First, create an instance of the `NML` class. Then pass in the dictionaries of consolidated parameters, i.e., from `glm_setup()`, `mixing()`, `morphometry()`, etc:

```python
Expand Down
6 changes: 3 additions & 3 deletions notebooks/sparkling-lake-tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,9 @@
"outputs": [],
"source": [
"glm_sim = simulation.GLMSim(\n",
" input_files=files,\n",
" api=False,\n",
" inputs_dir=\"inputs\"\n",
" input_files=files,\n",
" api=False,\n",
" inputs_dir=\"inputs\"\n",
")"
]
},
Expand Down

0 comments on commit d7c7eaa

Please sign in to comment.