Skip to content

Added poetry.lock for poetry cache (CI) #5

Added poetry.lock for poetry cache (CI)

Added poetry.lock for poetry cache (CI) #5

Workflow file for this run

name: CI - Automated Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Cache Poetry dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install --upgrade poetry
- name: Install dependencies with Poetry and StreamSnapper extras
run: poetry install --extras "all"
- name: Run tests
run: poetry run pytest tests/all.py