diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index c901a01..6c07648 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -6,11 +6,25 @@ name: Publish to PyPI on: release: types: [created] + workflow_dispatch: jobs: - deploy: + test: runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test with unittest + run: python -m unittest discover -v -s ./tests -p test_*.py + deploy: + runs-on: ubuntu-latest + needs: test steps: - uses: actions/checkout@v2 - name: Set up Python diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml deleted file mode 100644 index 7575870..0000000 --- a/.github/workflows/python-test.yml +++ /dev/null @@ -1,21 +0,0 @@ -# This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -name: Test package - -on: - workflow_dispatch: - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Test with unittest - run: python -m unittest discover -v -s ./tests -p test_*.py diff --git a/setup.py b/setup.py index 8fb89a5..4c45e8f 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="animeworld", - version="1.6.2", + version="1.6.3", author="MainKronos", description="AnimeWorld UNOFFICIAL API", long_description=long_description,