File tree Expand file tree Collapse file tree 1 file changed +28
-4
lines changed
Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Original file line number Diff line number Diff line change 55 types : [published]
66
77jobs :
8- publish :
8+ test :
99 runs-on : ubuntu-latest
10+
1011 steps :
1112 - uses : actions/checkout@v1
1213 with :
@@ -21,17 +22,40 @@ jobs:
2122 uses : dschep/install-poetry-action@v1.3
2223
2324 - name : Set Poetry config
24- env :
25- POETRY_PYPI_TOKEN_PYPI : ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
2625 run : |
2726 poetry config virtualenvs.in-project false
2827 poetry config virtualenvs.path ~/.virtualenvs
29- poetry config pypi-token.pypi "$POETRY_PYPI_TOKEN_PYPI"
3028
3129 - name : Install Dependencies
3230 run : poetry install
3331 if : steps.cache.outputs.cache-hit != 'true'
3432
33+ - name : Test with pytest
34+ run : poetry run pytest --cov-report term-missing --cov-report=xml --cov=labthings ./tests
35+
36+ publish :
37+ runs-on : ubuntu-latest
38+ needs : test
39+
40+ steps :
41+ - uses : actions/checkout@v1
42+ with :
43+ fetch-depth : 1
44+
45+ - name : Set up Python 3.7
46+ uses : actions/setup-python@v1
47+ with :
48+ python-version : 3.7
49+
50+ - name : Install Poetry
51+ uses : dschep/install-poetry-action@v1.3
52+
53+ - name : Set Poetry config
54+ env :
55+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
56+ run : |
57+ poetry config pypi-token.pypi "$POETRY_PYPI_TOKEN_PYPI"
58+
3559 - name : Build with Poetry
3660 run : poetry build
3761
You can’t perform that action at this time.
0 commit comments