Skip to content

Commit

Permalink
Re-consolidate workflows
Browse files Browse the repository at this point in the history
They are failing to run and I don't know why.
  • Loading branch information
twm committed Jul 7, 2024
1 parent 20c8e77 commit c91f121
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 64 deletions.
26 changes: 0 additions & 26 deletions .github/actions/build-dist/action.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/release.yml

This file was deleted.

40 changes: 38 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
# the conditions for which gh-pages are updated.
branches: [ trunk ]
tags:
- incremental-*
- "incremental-*"
pull_request:
branches: [ trunk ]

Expand All @@ -29,7 +29,22 @@ jobs:
runs-on: ubuntu-24.04

steps:
- uses: ./.github/actions/build-dist
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- run: pip install build twine

- run: python3 -m build

- run: twine check dist/*.*

- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*.*

testing:
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -160,3 +175,24 @@ jobs:
with:
name: html-report
path: htmlcov

pypi-publish:
runs-on: ubuntu-24.04
if: startsWith(github.ref, 'refs/tags/incremental-')
needs: [build, testing]

environment:
name: release
url: https://pypi.org/p/incremental

permissions:
id-token: write

steps:

- uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c91f121

Please sign in to comment.