Use tests from separate workflow file

This commit is contained in:
Gabriel Augendre 2022-10-10 23:14:06 +02:00
parent 871f29fbce
commit 9fcb8da67e

View file

@ -7,23 +7,7 @@ on:
jobs: jobs:
tests: tests:
name: Python tests uses: ./.github/workflows/test.yaml
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==1.1.15
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: poetry
- name: Install dependencies
run: poetry install
- name: Test
run: poetry run pytest --cov=. --cov-branch --cov-report term-missing:skip-covered
working-directory: ./src/
push_to_registry: push_to_registry:
name: Push Docker image to Docker Hub name: Push Docker image to Docker Hub
runs-on: ubuntu-latest runs-on: ubuntu-latest