Files
discord-embed/.github/workflows/pytest.yml
2022-09-24 00:51:15 +02:00

23 lines
666 B
YAML

---
name: Test code with pytest
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10" ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest