Merge pull request #127 from Doist/dependabot/github_actions/actions/… #265
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run test suite | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
name: "Python ${{ matrix.python-version }} with ${{ matrix.session }}" | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
session: ["memory", "localstack"] # TODO: we don't test against production AWS | |
steps: | |
- name: Start Docker container with localstack | |
if: matrix.session == 'localstack' | |
run: docker run -d -p 4566:9324 --rm softwaremill/elasticmq-native | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry | |
poetry install | |
- name: Run tests | |
run: poetry run pytest -vv -k ${{ matrix.session }} |