Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions workflows #112

Merged
merged 3 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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