Skip to content

Library maintenance 2025-03 #41

Library maintenance 2025-03

Library maintenance 2025-03 #41

Workflow file for this run

name: Tests Fast Python
on:
push:
branches: [main, release]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
Linter:
# GH runners:
runs-on: ${{ matrix.os }}
# # Self-hosted runners:
# runs-on:
# - self-hosted
# - ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10"]
# GH runners:
os: [ubuntu-latest]
# # Self-hosted runners:
# os: [Linux]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install bandit pre-commit
- name: pre-commit validation
run: pre-commit run --all
- name: Security checks
run: |
bandit -r src/autoprognosis/plugins/*
bandit -r src/autoprognosis/studies/*
Library:
needs: [Linter]
# GH runners:
runs-on: ${{ matrix.os }}
# # Self-hosted runners:
# runs-on:
# - self-hosted
# - ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
# GH runners:
os: [macos-latest, ubuntu-latest, windows-latest]
# # Self-hosted runners:
# os: [Linux, Windows, macOS]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: gautamkrishnar/keepalive-workflow@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install MacOS dependencies
run: |
brew install libomp
if: ${{ matrix.os == 'macos-latest' }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .[dev]
- name: Test with pytest
run: pytest -vvvsx -m "not slow" --durations=50