Skip to content

Commit

Permalink
Merge pull request #112 from paulromano/maintenance-updates
Browse files Browse the repository at this point in the history
Update GitHub Actions workflows
  • Loading branch information
nstauff authored May 30, 2024
2 parents 9560bfc + 1d2745e commit 8216c13
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
container: openmc/openmc:latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Apt dependencies
shell: bash
Expand Down
32 changes: 19 additions & 13 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,27 @@ on:
types: [published]

jobs:
deploy:
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: hynek/build-and-inspect-python-package@v2

publish:
needs: [dist]
environment: pypi
permissions:
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- uses: actions/download-artifact@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
name: Packages
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
specifies the directory created in the database
([#107](https://github.com/watts-dev/watts/pull/107))

### Changes

* Update recommendations for Dakota version
([#111](https://github.com/watts-dev/watts/pull/111))
* Update GitHub Actions workflows ([#112](https://github.com/watts-dev/watts/pull/112))

### Fixed

* Fixed path to system python executable in dakota plugin
* Fixed path for templates rendered from the `extra_template_inputs` argument in
`PluginGeneric` and subclasses
([#109](https://github.com/watts-dev/watts/pull/109))
* Update to fix `PluginDakota` executable
([#110](https://github.com/watts-dev/watts/pull/110))

## [0.5.1]

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.7"
dependencies = [
Expand Down

0 comments on commit 8216c13

Please sign in to comment.