Skip to content

Auto blacklist of 6377119564(?#NO NorAm) normalized numbers: {'6377… #91067

Auto blacklist of 6377119564(?#NO NorAm) normalized numbers: {'6377…

Auto blacklist of 6377119564(?#NO NorAm) normalized numbers: {'6377… #91067

Workflow file for this run

name: build
on:
push:
branches-ignore:
- deploy
pull_request:
branches-ignore:
- deploy
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.12'
steps:
- uses: actions/checkout@v4
- name: Fetch branches
run: |
git remote set-branches --add origin deploy
git fetch --depth=5 origin master deploy
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup cache
id: cache
uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ env.pythonLocation }}-pip-cache-version-1-${{ hashFiles('**/requirements.txt') }}}-${{ hashFiles('**/user_requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ env.pythonLocation }}-pip-cache-version-1-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/user_requirements.txt') }}
${{ runner.os }}-${{ env.pythonLocation }}-pip-cache-version-1-
path: |
~/.cache/pip
- name: Install Python dependencies
run: |
pip3 install -U wheel --upgrade-strategy eager
pip3 install -U -r requirements.txt -r user_requirements.txt pytest-cov coveralls --upgrade-strategy eager
- name: Lint ./tests
run: python3 -m flake8 --config=tox_tests.ini ./test/
- name: Lint ./classes
run: python3 -m flake8 --config=tox_classes.ini ./classes/
- name: Lint code
run: python3 -m flake8 ./
- name: Pytest
run: |
python3 -W default::Warning -m pytest \
--cov=chatcommunicate \
--cov=findspam \
--cov=globalvars \
--cov=spamhandling \
--cov=datahandling \
--cov=chatcommands \
--cov=helpers \
-n 3 \
--dist loadgroup \
--timeout=300 \
test