Skip to content

Merge branch 'dev' of github.com:AlexandreSenpai/Enma into dev #75

Merge branch 'dev' of github.com:AlexandreSenpai/Enma into dev

Merge branch 'dev' of github.com:AlexandreSenpai/Enma into dev #75

Workflow file for this run

name: Development Pypi
on:
push:
tags:
- "*-*"
jobs:
testing-deploy:
name: Pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Preparing the environment
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; else python -m pip install beautifulsoup4 requests pydantic; fi
- name: Starting Testing Suites
run: |
ENMA_CACHING_MANGADEX_PAGINATE_TTL_IN_SECONDS='0' \
ENMA_CACHING_MANGADEX_SEARCH_TTL_IN_SECONDS='0' \
ENMA_CACHING_MANGADEX_GET_TTL_IN_SECONDS='0' \
ENMA_CACHING_MANGADEX_FETCH_SYMBOLIC_LINK_TTL_IN_SECONDS='0' \
ENMA_CACHING_NHENTAI_PAGINATE_TTL_IN_SECONDS='0' \
ENMA_CACHING_NHENTAI_SEARCH_TTL_IN_SECONDS='0' \
ENMA_CACHING_NHENTAI_GET_TTL_IN_SECONDS='0' \
ENMA_CACHING_NHENTAI_FETCH_SYMBOLIC_LINK_TTL_IN_SECONDS='0' \
ENMA_CACHING_NHENTAI_AUTHOR_TTL_IN_SECONDS='0' \
ENMA_CACHING_MANGANATO_PAGINATE_TTL_IN_SECONDS='0' \
ENMA_CACHING_MANGANATO_SEARCH_TTL_IN_SECONDS='0' \
ENMA_CACHING_MANGANATO_GET_TTL_IN_SECONDS='0' \
ENMA_CACHING_MANGANATO_FETCH_SYMBOLIC_LINK_TTL_IN_SECONDS='0' \
pytest --cov=. --cov-report=xml ./tests
- name: Upload Report to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: pytest
- name: Building and Deploying
run: |
python -m pip install build twine wheel setuptools_scm setuptools
python -m build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.DEV_PYPI_API_TOKEN }}
packages_dir: dist/