forked from ansible-community/molecule-hetznercloud
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: rewrite hetznercloud molecule driver (ansible-community#46)
Co-authored-by: Julian Tölle <[email protected]> build: rewrite packaging config docs: the hetzner.hcloud collection require ansible-core>=2.13 docs: add project history feat: update driver schema feat: require instance volumes name BREAKING CHANGE: the instance volumes now require a `name` feat: require python>=3.9 BREAKING CHANGE: the molecule driver drops support for python version <3.9 feat: require molecule >=5.0,<7.0 BREAKING CHANGE: the molecule driver drops support for molecule version <5.0 feat: rename driver name to `molecule_hetznercloud` BREAKING CHANGE: the molecule driver name was renamed from `hetznercloud` to `molecule_hetznercloud` feat: instance `server_type` now defaults to `cx11` fix: remove unused dependencies fix: remove ansible-compat dependency test: setup e2e tests ci: setup release pipeline ci: add stale bot job chore: clean previous maintainer "personal" files
- Loading branch information
Showing
74 changed files
with
1,267 additions
and
2,353 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
[flake8] | ||
extend-ignore = | ||
E501 |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
name: Release please | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
release-please: | ||
# The secret HCLOUD_BOT_TOKEN is only available on the main repo, not in forks. | ||
if: github.repository == 'ansible-community/molecule-hetznercloud' | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
with: | ||
token: ${{ secrets.HCLOUD_BOT_TOKEN }} | ||
release-type: python | ||
package-name: molecule-hetznercloud | ||
|
||
extra-files: | | ||
molecule_hetznercloud/_version.py |
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,35 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: pip install build twine | ||
|
||
- name: Build | ||
run: python3 -m build | ||
|
||
- name: Check | ||
run: twine check dist/* | ||
|
||
- name: Publish | ||
if: github.event_name == 'release' | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: twine upload dist/* |
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,24 @@ | ||
name: Close stale issues | ||
|
||
on: | ||
schedule: | ||
- cron: "30 12 * * *" | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
stale-issue-message: "This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs." | ||
exempt-issue-labels: "pinned" | ||
stale-issue-labels: "stale" | ||
stale-pr-message: "This PR has been marked as stale because it has not had recent activity. The bot will close the PR if no further action occurs." | ||
exempt-pr-labels: "pinned" | ||
stale-pr-labels: "stale" | ||
days-before-stale: 90 | ||
days-before-close: 30 |
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,63 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
name: Python ${{ matrix.python-version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
make venv | ||
venv/bin/pip install tox tox-gh-actions | ||
- name: Run tests | ||
run: make test | ||
|
||
integration: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
permissions: | ||
id-token: write | ||
|
||
name: Integration Python ${{ matrix.python-version }} | ||
steps: | ||
- uses: hetznercloud/tps-action@main | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
make venv | ||
venv/bin/pip install tox tox-gh-actions | ||
- name: Run integrations | ||
run: make integration | ||
env: | ||
PY_COLORS: "1" | ||
ANSIBLE_FORCE_COLOR: "1" |
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
Oops, something went wrong.