Skip to content

[CI/CD] Add ci/cd workflows, and link to README #17

[CI/CD] Add ci/cd workflows, and link to README

[CI/CD] Add ci/cd workflows, and link to README #17

Workflow file for this run

name: Test on PR
on:
pull_request:
push:
branches: [master]
jobs:
tests:
name: Run unittest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements.txt
- name: Install the package
run: |
pip install -vvv .
pip show -f pixiv_utils
python -c "import pixiv_utils"
- name: Test with unittest
env:
HTTPS_PROXY: ""
run: |
cd tests/
bash run_tests.sh