Skip to content

CI

CI #4

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: "23 2 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
env:
OMP_NUM_THREADS: "2"
OPENBLAS_NUM_THREADS: "2"
MKL_NUM_THREADS: "2"
NUMEXPR_NUM_THREADS: "2"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout OptiProfiler
uses: actions/checkout@v4
with:
repository: optiprofiler/optiprofiler
path: optiprofiler
ref: main
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e optiprofiler
- name: Run adapter smoke and random tests
run: |
python -m unittest discover -s tests -p 'test_*.py'