Skip to content

Merge pull request #204 from snyk-labs/fix-limit-duplication #308

Merge pull request #204 from snyk-labs/fix-limit-duplication

Merge pull request #204 from snyk-labs/fix-limit-duplication #308

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
Tests:
name: pysnyk-test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
version: 1.5.1
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install -v
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Run pytest
run: |
source .venv/bin/activate
poetry run pytest