Make mypy happy with test_validation.py #7
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
# run all tests for crawler-user-agents (python/php) | |
name: CI validation | |
on: | |
# https://stackoverflow.com/questions/64635032/github-actions-run-on-push-to-all-branches | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: node format.js --check | |
- run: python3 -mpip install -U pip | |
- run: python3 -mpip install -e .[dev] | |
- run: py.test -vv | |
- run: mypy --strict *.py crawleruseragents/*.py | |
- run: ruff check | |
- run: ruff format --check | |
- run: python3 validate.py | |
- run: php validate.php | |
- run: go test |