Skip to content

Merge pull request #10 from MILO-ML/bug/fix-cd-issues #1

Merge pull request #10 from MILO-ML/bug/fix-cd-issues

Merge pull request #10 from MILO-ML/bug/fix-cd-issues #1

name: Python Unit Tests
on:
push:
branches:
- master
jobs:
automl:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache Python dependencies
uses: actions/cache@v4
id: python_cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pip install pytest
pytest