Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python-version: ["py310", "py311", "py312"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Run Test
id: tests
Expand Down Expand Up @@ -59,21 +59,25 @@ jobs:
echo "BRANCH=${BRANCH#refs/*/}" >> $GITHUB_ENV

- name: Notify if test FAILED
uses: archive/github-actions-slack@v2.0.0
uses: slackapi/slack-github-action@v3.0.2
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel: ${{ secrets.SLACK_CHANNEL_ID }}
slack-text: ":boom: *${{ env.FAILED_AMOUNT }}* Pycaption test(s) failed for Python *${{ matrix.python-version }}* on the *${{ env.BRANCH }}* branch (triggered by *${{ github.actor }}*)"
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID }}
text: ":boom: *${{ env.FAILED_AMOUNT }}* Pycaption test(s) failed for Python *${{ matrix.python-version }}* on the *${{ env.BRANCH }}* branch (triggered by *${{ github.actor }}*)"
if: steps.tests.outcome == 'failure' && !github.event.pull_request.head.repo.fork

- name: Mark test failure
run: exit 1
if: steps.tests.outcome == 'failure'

- name: Slack notify tests PASSED
uses: archive/github-actions-slack@v2.0.0
uses: slackapi/slack-github-action@v3.0.2
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel: ${{ secrets.SLACK_CHANNEL_ID }}
slack-text: ":rocket: All (*${{ env.PASSED_AMOUNT }}*) Pycaption tests passed for Python *${{ matrix.python-version }}* covering *${{ env.COVERAGE }}%* of code on the *${{ env.BRANCH }}* branch (triggered by *${{ github.actor }}*)"
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID }}
text: ":rocket: All (*${{ env.PASSED_AMOUNT }}*) Pycaption tests passed for Python *${{ matrix.python-version }}* covering *${{ env.COVERAGE }}%* of code on the *${{ env.BRANCH }}* branch (triggered by *${{ github.actor }}*)"
if: steps.tests.outcome == 'success' && !github.event.pull_request.head.repo.fork
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Changelog
- Code reformatted with Black/isort across the codebase
- Added missing tests for _PositioningTracker,
Alignment.from_horizontal_and_vertical_align
- Bump actions/checkout from v2 to v4 in CI workflow
- Replace unmaintained archive/github-actions-slack with
slackapi/slack-github-action@v3.0.2 (fixes Node.js and
set-output deprecation warnings)

2.2.20
^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

setup(
name="pycaption",
version="2.2.21.dev1",
version="2.2.21.dev2",
description="Closed caption converter",
long_description=open(README_PATH).read(),
author="Joe Norton",
Expand Down
Loading