Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danb27 committed Apr 6, 2024
1 parent 04c0aa8 commit d9530bd
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 77 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Commit Workflow

on:
push:
branches:
- main
pull_request:
on: push

jobs:
call-poetry-pytest-workflow:
uses: danb27/reusable-actions/.github/workflows/poetry-pytest-precommit.yml@dev
pytest-precommit-workflow:
uses: danb27/reusable-actions/.github/workflows/pytest-precommit.yml@dev
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Commit Workflow

on:
release:
types: [published]

# Permission can be added at job level or workflow level
# https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services#updating-your-github-actions-workflow
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
push-code-artifact:
uses: danb27/reusable-actions/.github/workflows/push-code-artifact.yml@dev
secrets: inherit
4 changes: 4 additions & 0 deletions example_package/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
"""example_description."""

from example_package.foo import bar

__all__ = ["bar"]
Loading

0 comments on commit d9530bd

Please sign in to comment.