Skip to content

install

install #3

Workflow file for this run

name: Run tests
on:
pull_request:
types: [ opened, synchronize, reopened ]
push:
branches: [ main ]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
run-tests:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
# version: ['3.8', '3.9', '3.10', '3.11', '3.12']
version: ['3.12']
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
# - name: Cache dependencies
# id: cache-deps
# uses: actions/cache@v3
# with:
# path: |
# .tox
# ~/.cache/pip
# ~/.cache/pypoetry
# ~/.local/bin/poetry
# ~/.local/share/pypoetry
# key: ${{ runner.os }}-python-${{ matrix.version }}-poetry-${{ hashFiles('.github/workflows/run-tests.yml', 'pyproject.toml', 'tox.ini') }}
- name: Run image
uses: abatilo/actions-poetry@v2
- name: Install the project dependencies
run: poetry install
- name: Run tests
run: |
poetry run pytest