Skip to content

Commit

Permalink
Merge pull request #73 from Indicio-tech/chore/workflows-and-dependabot
Browse files Browse the repository at this point in the history
chore: add publish workflow and dependabot config
  • Loading branch information
dbluhm authored Apr 11, 2024
2 parents dbc3fd5 + 1714728 commit ec7d6b7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# For details on how this file works refer to:
# - https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
# Maintain dependencies for GitHub Actions
# - Check for updates once a week
# - Group all updates into a single PR
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
all-actions:
patterns: ["*"]

# Maintain pip dependencies
- package-ecosystem: pip
directory: /
schedule:
interval: daily
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish
on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: poetry
- name: Install dependencies
run: poetry install
- name: Confidence check (run tests)
run: |
docker-compose run tests
- name: Build package
run: |
poetry build
- name: Publish package
run: |
poetry publish

0 comments on commit ec7d6b7

Please sign in to comment.