Skip to content

Commit

Permalink
Change exit code to 0 on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpakos committed Feb 5, 2024
1 parent 34fd114 commit 53ae3c4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Build
Expand All @@ -24,7 +24,7 @@ jobs:
pip install -U pip setuptools wheel build
python -m build
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: ./dist
Expand All @@ -40,7 +40,7 @@ jobs:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: ./dist
Expand All @@ -59,7 +59,7 @@ jobs:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: ./dist
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Test

on:
push:
branches-ignore:
- main
branches-ignore: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand All @@ -14,11 +13,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.x"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.x"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion ppslack/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.2.6"
__version__ = "3.3.0"
2 changes: 1 addition & 1 deletion ppslack/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ def main():
)
except Exception as e:
log.critical(e)
sys.exit(1)
sys.exit(0)
2 changes: 1 addition & 1 deletion ppslack/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
log = logging.getLogger(__name__)


class Slack(object):
class Slack:
def __init__(self):
try:
self._config = Config('ppslack')
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pplogger
ppconfig
slack_sdk
slack_sdk

0 comments on commit 53ae3c4

Please sign in to comment.