-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from PaperMtn/release/4.3.0
Release/4.3.0
- Loading branch information
Showing
28 changed files
with
2,030 additions
and
581 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,29 @@ | ||
name: Build and Test Docker Image | ||
|
||
on: | ||
push: | ||
|
||
env: | ||
TEST_TAG: papermountain/slack-watchman:test | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build | ||
uses: docker/build-push-action@v6 | ||
with: | ||
load: true | ||
tags: ${{ env.TEST_TAG }} | ||
|
||
- name: Inspect | ||
run: | | ||
docker image inspect ${{ env.TEST_TAG }} | ||
- name: Test | ||
run: | | ||
docker run --rm ${{ env.TEST_TAG }} --version | ||
docker run --rm ${{ env.TEST_TAG }} --help |
2 changes: 1 addition & 1 deletion
2
.github/workflows/dockerpublish.yml → .github/workflows/docker_publish.yml
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,4 +1,4 @@ | ||
name: ci | ||
name: Publish Docker Image | ||
|
||
on: | ||
push: | ||
|
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,34 @@ | ||
name: Test Python Package | ||
|
||
on: | ||
push: | ||
branches: [ develop, feature/**, release/**, hotfix/** ] | ||
pull_request: | ||
branches: [ develop, feature/**, release/**, hotfix/** ] | ||
|
||
jobs: | ||
build-ubuntu: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install poetry | ||
poetry install | ||
- name: Test setup & install | ||
run: | | ||
poetry build | ||
python3 -m pip install dist/*.whl | ||
- name: Test run | ||
run: | | ||
slack-watchman --version | ||
slack-watchman --help |
1 change: 0 additions & 1 deletion
1
.github/workflows/pythonpublish.yml → .github/workflows/python_publish.yml
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,4 +1,3 @@ | ||
|
||
name: Poetry Publish | ||
|
||
on: | ||
|
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,33 @@ | ||
name: Run Unit Test via Pytest | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install --with dev | ||
- name: Analysing the code with pylint | ||
run: | | ||
poetry run pylint $(git ls-files '*.py') | ||
continue-on-error: true | ||
- name: Test with pytest | ||
run: | | ||
poetry run coverage run -m pytest -v -s | ||
- name: Generate Coverage Report | ||
run: | | ||
poetry run coverage report -m |
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
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.