i #104
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: scramp | |
permissions: read-all | |
on: [push] | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
container: python:${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
# Add safe directory to work around bug in GitHub actions/checkout | |
git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
python -m pip install --upgrade pip | |
pip install pytest pytest-mock . | |
- name: Run pytest tests | |
run: | | |
python -m pytest -x -v -W error test --ignore=test/test_readme.py | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build flake8 Flake8-pyproject flake8-alphabetize pytest black \ | |
passlib twine . | |
- name: Run checks | |
run: | | |
black --check . | |
flake8 . | |
python -m pytest -x -v -W error test/test_readme.py |