inlinehashes/.github/workflows/test.yml

33 lines
662 B
YAML
Raw Permalink 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:
2023-01-22 18:18:39 +01:00
matrix:
2023-01-22 18:38:25 +01:00
python-version: ["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 }}
2023-01-22 18:55:53 +01:00
uses: actions/setup-python@v4
2022-04-01 20:54:32 +02:00
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