Skip to content

Nightly Test

Nightly Test #99

Workflow file for this run

name: Nightly Test
on:
schedule:
- cron: '0 8 * * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
check-latest: true
allow-prereleases: true
- name: Install dependencies
continue-on-error: true
run: |
python -m pip install --upgrade pip
pip install flake8 mypy
pip install -e .
if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi
- name: Lint with flake8
run: |
# Stop the build if there are Python syntax errors or undefined names
flake8 ./objwatch ./examples --count --select=E9,F63,F7,F82 --show-source --statistics
# Exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ./objwatch ./examples --count --exit-zero --max-complexity=16 --max-line-length=127 --statistics
- name: Type check with mypy
run: |
# Run mypy type checker
mypy ./objwatch --ignore-missing-imports
- name: Test with pytest
run: |
python -m pytest tests