Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GH Workflows #85

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/dependabot.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: update dependencies
on:

schedule:
- cron: '0 0 1 * *'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- uses: actions/checkout@v3
with:
token: ${{ steps.app-token.outputs.token }}
ref: development
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip

- name: Install pre-commit and pip-tools
run: pip install pre-commit pip-tools

- name: Run pre-commit autoupdate
run: pre-commit autoupdate

- name: Update test requirements
run: pip-compile --upgrade test_requirements.in -o test_requirements.txt

- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ steps.app-token.outputs.token }}
base: development
branch: dependency-updates
delete-branch: true
title: Dependency Updates
commit-message: Dependency updates
2 changes: 2 additions & 0 deletions test_requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tox==4.*
tox-docker==5.*
60 changes: 58 additions & 2 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,58 @@
tox==4.*
tox-docker==5.*
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=test_requirements.txt test_requirements.in
#
cachetools==5.5.0
# via tox
certifi==2024.8.30
# via requests
chardet==5.2.0
# via tox
charset-normalizer==3.4.0
# via requests
colorama==0.4.6
# via tox
distlib==0.3.9
# via virtualenv
docker==7.1.0
# via tox-docker
filelock==3.16.1
# via
# tox
# virtualenv
idna==3.10
# via requests
packaging==24.2
# via
# pyproject-api
# tox
platformdirs==4.3.6
# via
# tox
# virtualenv
pluggy==1.5.0
# via tox
pyproject-api==1.8.0
# via tox
requests==2.32.3
# via docker
tomli==2.1.0
# via
# pyproject-api
# tox
tox==4.23.2
# via
# -r test_requirements.in
# tox-docker
tox-docker==5.0.0
# via -r test_requirements.in
typing-extensions==4.12.2
# via tox
urllib3==2.2.3
# via
# docker
# requests
virtualenv==20.28.0
# via tox