Skip to content

Commit 279b841

Browse files
committed
Merge branch 'master' into delete-old-files
2 parents 90bd59f + 40e70b0 commit 279b841

File tree

81 files changed

+2758
-256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2758
-256
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 50 deletions
This file was deleted.

.bumpversion.toml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[tool.bumpversion]
2+
current_version = "2.16.12"
3+
commit = true
4+
tag = false
5+
tag_name = "{new_version}"
6+
allow_dirty = true
7+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
8+
serialize = [
9+
"{major}.{minor}.{patch}",
10+
]
11+
12+
[[tool.bumpversion.files]]
13+
filename = "CHANGES.md"
14+
search = """[Unreleased](https://github.com/bird-house/birdhouse-deploy/tree/master) (latest)
15+
------------------------------------------------------------------------------------------------------------------"""
16+
replace = """[Unreleased](https://github.com/bird-house/birdhouse-deploy/tree/master) (latest)
17+
------------------------------------------------------------------------------------------------------------------
18+
19+
[//]: # (list changes here, using '-' for each new entry, remove this when items are added)
20+
21+
[{new_version}](https://github.com/bird-house/birdhouse-deploy/tree/{new_version}) ({utcnow:%Y-%m-%d})
22+
------------------------------------------------------------------------------------------------------------------"""
23+
24+
[[tool.bumpversion.files]]
25+
filename = "Makefile"
26+
part = "version"
27+
search = "APP_VERSION := {current_version}"
28+
replace = "APP_VERSION := {new_version}"
29+
30+
[[tool.bumpversion.files]]
31+
filename = "README.rst"
32+
part = "version"
33+
search = "{current_version}"
34+
replace = "{new_version}"
35+
36+
[[tool.bumpversion.files]]
37+
filename = "RELEASE.txt"
38+
part = "version"
39+
search = "{current_version}"
40+
replace = "{new_version}"
41+
42+
[[tool.bumpversion.files]]
43+
filename = "RELEASE.txt"
44+
search = "\\d{{4}}-\\d{{2}}-\\d{{2}}T\\d{{2}}:\\d{{2}}:\\d{{2}}Z"
45+
replace = "{utcnow:%Y-%m-%dT%H:%M:%SZ}"
46+
regex = true
47+
48+
[[tool.bumpversion.files]]
49+
filename = "birdhouse/components/canarie-api/docker_configuration.py.template"
50+
part = "version"
51+
search = "'version': '{current_version}'"
52+
replace = "'version': '{new_version}'"
53+
54+
[[tool.bumpversion.files]]
55+
filename = "birdhouse/components/canarie-api/docker_configuration.py.template"
56+
search = "'releaseTime': '\\d{{4}}-\\d{{2}}-\\d{{2}}T\\d{{2}}:\\d{{2}}:\\d{{2}}Z'"
57+
replace = "'releaseTime': '{utcnow:%Y-%m-%dT%H:%M:%SZ}'"
58+
regex = true
59+
60+
[[tool.bumpversion.files]]
61+
filename = "docs/source/conf.py"
62+
part = "version"
63+
search = "'{current_version}'"
64+
replace = "'{new_version}'"

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: /.github/workflows
6+
schedule:
7+
interval: "quarterly"
8+
groups:
9+
actions:
10+
patterns:
11+
- "*"
12+
13+
- package-ecosystem: pip
14+
directory: /tests
15+
schedule:
16+
interval: "quarterly"
17+
groups:
18+
python:
19+
patterns:
20+
- "*"

.github/workflows/greetings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
greeting:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/first-interaction@v1
9+
- uses: actions/first-interaction@753c925c8d1ac6fede23781875376600628d9b5d # v3.0.0
1010
with:
1111
repo-token: ${{ secrets.GITHUB_TOKEN }}
1212
issue-message: >

.github/workflows/label.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,20 @@
66
# https://github.com/actions/labeler/blob/master/README.md
77

88
name: Labeler
9-
on: [pull_request]
9+
on:
10+
# Note: potential security risk from this action using pull_request_target.
11+
# Do not add actions in here which need a checkout of the repo, and do not use any caching in here.
12+
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
13+
pull_request_target:
14+
types:
15+
- opened
16+
- reopened
17+
- synchronize
1018

1119
jobs:
1220
label:
1321
runs-on: ubuntu-latest
1422
steps:
15-
- uses: actions/labeler@v2
23+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
1624
with:
1725
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/tests.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
name: Unit tests
2+
23
on:
34
pull_request:
45
types: [opened, synchronize, reopened, ready_for_review]
6+
7+
concurrency:
8+
# For a given workflow, if we push to the same branch, cancel all previous builds on that branch except on master.
9+
group: "${{ github.workflow }}-${{ github.ref }}"
10+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
11+
512
jobs:
613
test:
714
if: github.event.pull_request.draft == false
815
runs-on: ubuntu-latest
916
steps:
10-
- uses: actions/checkout@v3
11-
- name: Set up python for testing
12-
uses: actions/setup-python@v4
17+
- name: Checkout Repository
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
with:
20+
persist-credentials: false
21+
- name: Set up Python3
22+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
1323
with:
1424
python-version: "3.11"
1525
cache: 'pip'
16-
- name: Install python test dependencies
26+
- name: Install Python CI Dependencies
1727
run: |
18-
pip install -r ./tests/requirements.txt
28+
python -m pip install --require-hashes -r ./tests/requirements.txt
1929
- name: Test with pytest
2030
run: |
21-
pytest ./tests/unit
31+
python -m pytest ./tests/unit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ birdhouse/env.local
33
birdhouse/certkey.pem
44
birdhouse/cert.pem
55
birdhouse/key.pem
6+
birdhouse/restic.env
67

78
## Deployment
89
vagrant_variables.yml

0 commit comments

Comments
 (0)