Skip to content

Scheduled DeerLab tests #175

Scheduled DeerLab tests

Scheduled DeerLab tests #175

Workflow file for this run

name: Scheduled DeerLab tests
on:
workflow_dispatch:
schedule:
# Run once a week on Monday at 6:30 AM
- cron: '30 6 * * 1'
jobs:
matrix_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: setup.py
- run: |
python -m pip install --upgrade pip
pip install wheel
pip install .
# - uses: actions/cache@v2
# if: startsWith(runner.os, 'Windows')
# with:
# path: |
# ~\AppData\Local\pip\Cache
# key: ${{ runner.os }}-${{ hashFiles('**/setup.py') }}
# restore-keys: |
# {{ runner.os }}-pip-
# - uses: actions/cache@v2
# if: startsWith(runner.os, 'macOS')
# with:
# path: |
# ~/Library/Caches/pip
# key: ${{ runner.os }}-${{ hashFiles('**/setup.py') }}
# restore-keys: |
# {{ runner.os }}-pip-
# - uses: actions/cache@v2
# if: startsWith(runner.os, 'Linux')
# with:
# path: |
# ~/.cache/pip
# key: ${{ runner.os }}-${{ hashFiles('**/setup.py') }}
# restore-keys: |
# {{ runner.os }}-pip-
# - name: Install dependencies
# if: steps.cache.outputs.cache-hit != 'false'
# run: |
# python -m pip install --upgrade pip
# pip install wheel
# pip install .
# - name: Windows MKL linking
# if: matrix.os == 'windows-latest'
# run: |
# python upgrade_mkl.py
- name: Test with pytest
run: pytest