Skip to content

Merge pull request #28 from bengm/patch-1 #47

Merge pull request #28 from bengm/patch-1

Merge pull request #28 from bengm/patch-1 #47

Workflow file for this run

# Hat tip: https://jacobian.org/til/github-actions-poetry/
name: test
on:
push:
branches: [main]
pull_request:
env:
SAM_API_KEY: not_a_real_key
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: cache poetry install
uses: actions/cache@v3
with:
path: ~/.local
key: pyenv-${{ matrix.python-version }}-poetry-1.6.1-0
- uses: snok/install-poetry@v1
with:
version: 1.6.1
virtualenvs-create: true
virtualenvs-in-project: true
- run: pip install tox
- name: cache deps
id: cache-deps
uses: actions/cache@v3
with:
path: .tox
key: ${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'setup.cfg') }}
- run: tox -e ${{ matrix.python-version }}