-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move to gh action, dependabot
- Loading branch information
Stefan Borer
committed
Mar 24, 2021
1 parent
b8d5f16
commit c52161b
Showing
6 changed files
with
79 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 1 | ||
update_configs: | ||
- package_manager: "python" | ||
directory: "/" | ||
update_schedule: "live" | ||
automerged_updates: | ||
- match: | ||
dependency_type: "development" | ||
update_type: "semver:minor" | ||
commit_message: | ||
prefix: "chore" | ||
include_scope: true | ||
- package_manager: "docker" | ||
directory: "/" | ||
update_schedule: "daily" | ||
commit_message: | ||
prefix: "chore" | ||
include_scope: true | ||
ignored_updates: | ||
- match: | ||
dependency_name: "python" | ||
version_requirement: ">=3.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Auto approve dependabot | ||
|
||
on: | ||
pull_request_target | ||
|
||
jobs: | ||
auto-approve: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hmarr/auto-approve-action@v2 | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the project | ||
run: | | ||
echo "UID=$(id --user)" > .env | ||
docker-compose up -d --build | ||
- name: Lint the code | ||
run: | | ||
docker-compose run --rm interval black --check . | ||
docker-compose run --rm interval flake8 | ||
- name: Run pytest | ||
run: | | ||
docker-compose run --rm interval wait-for-it.sh db:5432 | ||
docker-compose run --rm interval wait-for-it.sh caluma:8000 | ||
docker-compose run --rm interval pytest --no-cov-on-fail --cov | ||
gitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.7' | ||
- name: Install gitlint | ||
run: pip install gitlint | ||
- name: Run gitlint | ||
run: gitlint --contrib contrib-title-conventional-commits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
[general] | ||
ignore=body-is-missing | ||
|
||
[ignore-by-title] | ||
regex=^chore\(deps.* | ||
ignore=title-max-length, body-is-missing, body-max-line-length, body-min-length |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.