Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit b2edb97

Browse files
committed
Replace codecov workflow
1 parent 389d4f3 commit b2edb97

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.github/workflows/codecov.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,10 @@ on:
88

99
jobs:
1010
codecov:
11-
# ---------------------------------------------------
12-
# Documentation and examples can be found at
13-
# https://github.com/snok/install-poetry
14-
# ---------------------------------------------------
1511
runs-on: ubuntu-latest
1612
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-python@v2
19-
with:
20-
python-version: 3.9
21-
- name: Install poetry
22-
uses: snok/install-poetry@v1.1.1
23-
with:
24-
virtualenvs-create: true
25-
virtualenvs-in-project: true
26-
- uses: actions/cache@v2
27-
id: cache-venv
28-
with:
29-
path: .venv
30-
key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-3
31-
- run: poetry install --no-interaction --no-root
32-
if: steps.cache-venv.outputs.cache-hit != 'true'
33-
- run: poetry install --no-interaction
34-
- run: poetry run pytest --cov=openapi_tester --cov-report=xml
35-
- uses: codecov/codecov-action@v1
36-
with:
37-
file: ./coverage.xml
38-
fail_ci_if_error: true
13+
- uses: snok/.github/workflows/codecov@main
14+
with:
15+
source-dir: openapi_tester
16+
pip-cache-key: pip-0
17+
poetry-cache-key: poetry-0

0 commit comments

Comments
 (0)