Skip to content

try caching dependencies #2

try caching dependencies

try caching dependencies #2

name: Run Unit Tests via PyTest
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v3
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install octave
run: |
sudo apt-get update
sudo apt-get install -y build-essential octave
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
pip install pandas==1.3.3 numpy==1.22.0
- name: Run pyspi unit test
run: |
pytest -v