Skip to content

Update test.yml

Update test.yml #74

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.8, 3.9]
steps:
- name: Checking out repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: make venv
- name: Testing (without coverage)
run: |
if [ "${{ runner.os }}" == "Linux" ]; then
source venv/bin/activate
elif [ "${{ runner.os }}" == "Windows" ]; then
venv\Scripts\activate
fi
pytest tests/test_fit.py