[DOC] Update README, and add English version (#19) #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |