|
|
@ -5,16 +5,21 @@ on:
|
|
|
|
branches: [ master ]
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
matrix:
|
|
|
|
python-version: [3.7, 3.8, 3.9, "3.10", 3.11]
|
|
|
|
python-version:
|
|
|
|
|
|
|
|
- '3.12'
|
|
|
|
|
|
|
|
- '3.11'
|
|
|
|
|
|
|
|
- '3.10'
|
|
|
|
|
|
|
|
- '3.9'
|
|
|
|
|
|
|
|
- '3.8'
|
|
|
|
|
|
|
|
- '3.7'
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install Dependencies
|
|
|
|
- name: Install Dependencies
|
|
|
@ -25,7 +30,7 @@ jobs:
|
|
|
|
- name: Lint with ruff
|
|
|
|
- name: Lint with ruff
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
|
|
ruff . --format=github --select=E9,F63,F7,F82
|
|
|
|
ruff . --output-format=github --select=E9,F63,F7,F82
|
|
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
|
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
|
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
|
|
- name: Sherlock Site Detect Tests
|
|
|
|
- name: Sherlock Site Detect Tests
|
|
|
|