Skip to content

[pre-commit.ci] pre-commit autoupdate #157

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #157

Workflow file for this run

name: PerformanceTests
on:
[push, pull_request]
defaults:
run:
shell: bash
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.11]
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install -U pip
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: py${{ matrix.python-version }}-${{ matrix.os }}-pip
- name: Test environment setup
run: |
python -m pip install wheel
python -m pip install pytest
python -m pip install pytest-dependency
python -m pip install -e .
- name: Run tests
run: |
python -m pytest -s perf_tests