From e716eb31bce0cbadb34f97a46a16a28a04adbbfb Mon Sep 17 00:00:00 2001 From: Charbel Assaad Date: Thu, 1 Sep 2022 18:03:46 +0300 Subject: [PATCH] Test GitHub action. --- .github/workflows/CI.yml | 23 +++++++++++++++++++++++ .gitignore | 4 +++- requirements-dev.txt | 5 +++++ requirements.txt | 3 +++ tox.ini | 2 +- 5 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/CI.yml create mode 100644 requirements-dev.txt create mode 100644 requirements.txt diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..cf4de69 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,23 @@ +name: Python package + +on: [ push ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python: [ "3.7", "3.8", "3.9", "3.10" ] + + steps: + - uses: actions/checkout@v3 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + - name: Install tox and any other packages + run: pip install tox pytest requests tqdm urllib3 setuptools setuptools_scm + - name: Run tox + # Run tox using the version of Python in `PATH` + run: tox -e py \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2a37164..2ad3cbe 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ Manga/ build/ .pytest_cache/ -*.egg-info/ \ No newline at end of file +*.egg-info/ +.tox/ +.eggs/ \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..64c45fc --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,5 @@ +pytest >= 7.1.2 +requests >= 2.28.1 +setuptools >= 60.2.0 +tqdm >= 4.64.0 +urllib3 >= 1.26.11 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5827974 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +requests >= 2.28.1 +tqdm >= 4.64.0 +urllib3 >= 1.26.11 diff --git a/tox.ini b/tox.ini index e62129f..bd107c5 100644 --- a/tox.ini +++ b/tox.ini @@ -12,4 +12,4 @@ deps = tqdm urllib3 commands = - manrododex 32fdfe9b-6e11-4a13-9e36-dcd8ea77b4e4 --selvolchap v1v1,v2v14 \ No newline at end of file + manrododex 32fdfe9b-6e11-4a13-9e36-dcd8ea77b4e4 --selvolchap v1v1,v2v14 --dry-run \ No newline at end of file