Skip to content

Commit

Permalink
import test in build
Browse files Browse the repository at this point in the history
  • Loading branch information
sbusso committed Mar 23, 2024
1 parent 3a2849b commit 214b898
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: CI
on:
workflow_call:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
tests:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ on:
- "*"

jobs:
tests:
uses: ./.github/workflows/ci.yml
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: [tests]

# environment:
# name: pypi
# url: https://pypi.org/p/scrapework
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here
- uses: ./.github/workflows/ci.yml
- name: Build
run: poetry build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 214b898

Please sign in to comment.