mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 13:03:13 +02:00
- Add +x to Python scripts with shebangs (3 files) - Remove -x from non-script files like .cpp, .txt, makefile (23 files) - Move shebang to first line in C/imageViewer/lint.sh
33 lines
666 B
YAML
33 lines
666 B
YAML
name: Python tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "PYTHON/lichess_bot/**"
|
|
- "PYTHON/**"
|
|
- "tests/**"
|
|
- "requirements.txt"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "PYTHON/lichess_bot/**"
|
|
- "PYTHON/**"
|
|
- "tests/**"
|
|
- "requirements.txt"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
- name: Run pytest
|
|
run: pytest -q
|