Skip to content

Update README.md

Update README.md #15

Workflow file for this run

name: Linting and Unit Testing.
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest mypy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=130 --statistics --ignore=E302
- name: Test with pytest
if: github.event_name == 'push'
env:
GS_LTUID: ${{ secrets.GS_LTUID }}
GS_LTOKEN: ${{ secrets.GS_LTOKEN }}
CN_LTUID: ${{ secrets.CN_LTUID }}
CN_LTOKEN: ${{ secrets.CN_LTOKEN }}
run: |
python -m pytest --disable-warnings -k "not chinese and not local"
- name: Lint with mypy
run: |
mypy --install-types --non-interactive --ignore-missing-imports --no-warn-no-return genshinstats/