inlinehashes/.github/workflows/test.yml

33 lines
673 B
YAML
Raw Normal View History

name: Test Application
2022-04-01 20:50:12 +02:00
on:
push:
2022-04-01 20:54:32 +02:00
branches: [main]
2022-04-01 20:50:12 +02:00
pull_request:
2022-04-01 20:54:32 +02:00
branches: [main]
2022-04-01 20:50:12 +02:00
permissions:
contents: read
jobs:
test:
2022-04-01 20:50:12 +02:00
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
2022-04-01 20:50:12 +02:00
steps:
2022-04-01 20:54:32 +02:00
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
2022-04-01 20:54:32 +02:00
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
2022-04-01 20:54:32 +02:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
2022-04-01 20:54:32 +02:00
- name: Test with pytest
run: |
poetry run pytest