-
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.
* move CI to github actions * update dependencies * update linters
- Loading branch information
Showing
9 changed files
with
631 additions
and
608 deletions.
There are no files selected for viewing
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,17 @@ | ||
### Subject of the issue | ||
Describe your issue here. | ||
|
||
### Your environment | ||
* version of sceptre (sceptre --version) | ||
* version of python (python --version) | ||
* which OS/distro | ||
|
||
### Steps to reproduce | ||
Tell us how to reproduce this issue. Please provide sceptre projct files if possible, | ||
you can use https://plnkr.co/edit/ANFHm61Ilt4mQVgF as a base. | ||
|
||
### Expected behaviour | ||
Tell us what should happen | ||
|
||
### Actual behaviour | ||
Tell us what happens instead |
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 @@ | ||
[Your PR description here] | ||
|
||
## PR Checklist | ||
|
||
- [ ] Wrote a good commit message & description [see guide below]. | ||
- [ ] Commit message starts with `[Resolve #issue-number]`. | ||
- [ ] Added/Updated unit tests. | ||
- [ ] Added/Updated integration tests (if applicable). | ||
- [ ] All unit tests (`poetry run tox`) are passing. | ||
- [ ] Used the same coding conventions as the rest of the project. | ||
- [ ] The new code passes pre-commit validations (`poetry run pre-commit run --all-files`). | ||
- [ ] The PR relates to _only_ one subject with a clear title. | ||
and description in grammatically correct, complete sentences. | ||
|
||
## Approver/Reviewer Checklist | ||
|
||
- [ ] Before merge squash related commits. | ||
|
||
## Other Information | ||
|
||
[Guide to writing a good commit](http://chris.beams.io/posts/git-commit/) |
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,16 @@ | ||
name: main | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+([0-9]+)' | ||
|
||
jobs: | ||
pypi-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Publish to pypi | ||
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_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,58 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
packaging: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Install dependencies | ||
run: poetry install --no-interaction --all-extras | ||
- name: build package | ||
run: poetry build | ||
# use https://github.com/medmunds/tox-gh-matrix to export tox envlist to GH actions | ||
get-tox-envlist: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
envlist: ${{ steps.generate-envlist.outputs.envlist }} | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Install dependencies | ||
run: poetry install --no-interaction --all-extras | ||
- id: generate-envlist | ||
run: poetry run tox --gh-matrix | ||
unit-tests: | ||
needs: get-tox-envlist | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
tox: ${{ fromJSON(needs.get-tox-envlist.outputs.envlist) }} | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
id: setup-python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.tox.python.spec }} | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Install dependencies | ||
run: poetry install --no-interaction --all-extras | ||
- name: run python tests | ||
run: poetry run tox -e ${{ matrix.tox.name }} | ||
- name: run python test report | ||
run: poetry run tox -e report |
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.