commit
7524689e8d
|
@ -1,4 +1,4 @@
|
||||||
name: Run tests & Public to Docker Registry
|
name: Run tests & Publish to Docker Registry
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ jobs:
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/poetry
|
path: ~/.cache/poetry
|
||||||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/peotry.lock') }}
|
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-poetry-
|
${{ runner.os }}-poetry-
|
||||||
|
|
||||||
|
@ -63,7 +63,6 @@ jobs:
|
||||||
poetry run black --check .
|
poetry run black --check .
|
||||||
flake8
|
flake8
|
||||||
|
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest --cov=. --cov-report=term:skip-covered --cov-report=html:htmlcov --cov-fail-under=60
|
pytest --cov=. --cov-report=term:skip-covered --cov-report=html:htmlcov --cov-fail-under=60
|
||||||
|
@ -97,4 +96,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
to: ${{ secrets.TELEGRAM_TO }}
|
to: ${{ secrets.TELEGRAM_TO }}
|
||||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
args: Docker image pushed on ${{ github.ref }}
|
args: Docker image pushed on ${{ github.ref }}
|
||||||
|
|
Loading…
Reference in New Issue