Use tests from separate workflow file
This commit is contained in:
parent
871f29fbce
commit
9fcb8da67e
1 changed files with 1 additions and 17 deletions
18
.github/workflows/publish.yaml
vendored
18
.github/workflows/publish.yaml
vendored
|
@ -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
|
||||||
|
|
Reference in a new issue