Auto watch of 0x53E4aF392368d87c9B2b993a5abE833232292010
by ipodtou…
#95947
Workflow file for this run
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: 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.9' | |
- '3.13' | |
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 |