diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c1bd15..6d82e3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: container: openmc/openmc:latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Apt dependencies shell: bash diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index cf01afe..ba033de 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index a0ffe0d..30b2d2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/pyproject.toml b/pyproject.toml index 98fc069..5671b3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [