connector-aws/.github/workflows/tests.yml

30 lines
705 B
YAML
Raw Normal View History

2022-11-10 02:39:30 +00:00
name: Tests
2022-11-10 02:22:33 +00:00
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2022-11-10 02:24:28 +00:00
python-version: ["3.10", "3.11"]
2022-11-10 02:22:33 +00:00
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: cache poetry install
2022-11-10 03:18:44 +00:00
uses: actions/cache@v3
2022-11-10 02:22:33 +00:00
with:
path: ~/.local
key: poetry-1.2.1
- uses: snok/install-poetry@v1
with:
version: 1.2.1
virtualenvs-create: true
virtualenvs-in-project: true
- run: poetry install --no-interaction
- run: poetry run pytest