Skip to content

Commit

Permalink
rename workflow to unit_tests, change project version, remove leftove…
Browse files Browse the repository at this point in the history
…r bash commands and add github artifacts
  • Loading branch information
OlteanuRares committed Oct 31, 2023
1 parent 2841d14 commit 98f6372
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create_github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
call-unit-tests-workflow:
name: Run unit tests
uses: pbs/pycaption/.github/workflows/main.yml@main
uses: pbs/pycaption/.github/workflows/unit_tests.yml@main
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: workflow_dispatch
jobs:
call-unit-tests-workflow:
name: Run unit tests
uses: pbs/pycaption/.github/workflows/main.yml@main
uses: pbs/pycaption/.github/workflows/unit_tests.yml@main
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: workflow_dispatch
jobs:
call-unit-tests-workflow:
name: Run unit tests
uses: ./.github/workflows/main.yml
uses: ./.github/workflows/unit_tests.yml
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/main.yml → .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,21 @@ jobs:
id: tests
run: |
./run_tests.sh test_${{ matrix.python-version }}
ls -al
continue-on-error: true

- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: test-report
path: junit.xml
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage.xml

- name: Add context info to env
run: |
ls -al
sudo apt-get install -y --no-install-recommends libxml-xpath-perl
COVERAGE=`xpath -q -e "floor(/coverage/@line-rate * 100)" coverage.xml`
FAILED_AMOUNT=`xpath -q -e "number(/testsuites/testsuite/@failures)" junit.xml`
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ License
This module is Copyright (c) 2012-2023 PBS.org and is available under the `Apache
License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0>`__.

.. |Build Status| image:: https://github.com/pbs/pycaption/actions/workflows/main.yml/badge.svg
:target: https://github.com/pbs/pycaption/actions/workflows/main.yml
.. |Build Status| image:: https://github.com/pbs/pycaption/actions/workflows/unit_tests.yml/badge.svg
:target: https://github.com/pbs/pycaption/actions/workflows/unit_tests.yml
:alt: Unit Tests

.. |Pre-Commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name='pycaption',
version='2.1.1.dev1',
version='2.1.1',
description='Closed caption converter',
long_description=open(README_PATH).read(),
author='Joe Norton',
Expand Down

0 comments on commit 98f6372

Please sign in to comment.