mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 07:57:44 +00:00
d74c5a8f84
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
name: Scheduled Tests
|
|
|
|
on:
|
|
schedule:
|
|
# Every Monday at 07:00 UTC
|
|
- cron: "0 7 * * 1"
|
|
workflow_dispatch: # Allow manual trigger
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
name: Weekly Test Run (Python ${{ matrix.python-version }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.10", "3.11"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: "pip"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[test]" || pip install -r requirements.txt
|
|
pip install pytest pytest-cov
|
|
|
|
- name: Run tests
|
|
run: |
|
|
pytest test/backtesting/ -v --tb=short --durations=10
|
|
|
|
- name: Upload results on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: test-results-py${{ matrix.python-version }}
|
|
path: |
|
|
.pytest_cache/
|
|
retention-days: 7
|
|
|
|
dependency-audit:
|
|
name: Dependency Audit
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.10"
|
|
cache: "pip"
|
|
|
|
- name: Install safety
|
|
run: pip install safety
|
|
|
|
- name: Check for known vulnerabilities
|
|
run: |
|
|
echo "=== Weekly dependency vulnerability scan ==="
|
|
safety check -r requirements.txt --json || {
|
|
echo "::warning::Vulnerabilities found — review and update dependencies"
|
|
exit 0
|
|
}
|