Framework update #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup | |
uses: actions/setup-python@v1 | |
- name: Cache pip | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
${{ runner.os }}- | |
- name: Install dependencies for Windows | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy Cython pytest-cov | |
pip install . | |
- name: Install dependencies for macOS | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy Cython pytest-cov | |
pip install . | |
- name: Install dependencies for ubuntu | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy Cython pytest-cov | |
pip install . | |
- name: Unit tests | |
run: | | |
mkdir -p test_data | |
pytest --cov-report=xml --cov-config=.coveragerc tests -p no:warnings -v |