Skip to content

Commit 38fe5ae

Browse files
authored
Merge pull request #22 from TankerHQ/dm/poetry
Switch to poetry for CI
2 parents e7621c8 + cd4b91d commit 38fe5ae

6 files changed

Lines changed: 736 additions & 85 deletions

File tree

.github/workflows/checks.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,24 @@ jobs:
99
python-version: [3.5, 3.6, 3.7, 3.8]
1010
steps:
1111
- uses: actions/checkout@v1
12+
1213
- name: Set up Python ${{ matrix.python-version }}
1314
uses: actions/setup-python@v1
1415
with:
1516
python-version: ${{ matrix.python-version }}
16-
- name: Install dmenv
17-
uses: TankerHQ/dmenv-install-action@v1.0.0
18-
with:
19-
dmenv-version: 0.20.0
20-
- name: Prepare project for development
21-
run: dmenv install
22-
- name: Run tests
23-
run: dmenv run -- pytest
2417

25-
coverage:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- uses: actions/checkout@v1
29-
- name: Set up Python 3.8
30-
uses: actions/setup-python@v1
31-
with:
32-
python-version: 3.8
33-
- name: Install dmenv
34-
uses: TankerHQ/dmenv-install-action@v1.0.0
35-
with:
36-
dmenv-version: 0.20.0
18+
- name: Install and configure poetry
19+
run: |
20+
python -m pip install poetry
21+
python -m poetry config virtualenvs.create false
22+
3723
- name: Prepare project for development
38-
run: dmenv install
24+
run: python -m poetry install
25+
3926
- name: Run tests
40-
run: dmenv run -- pytest --cov=tankersdk_identity --cov-report=xml --cov-report=term
27+
run: python -m poetry run pytest
28+
4129
- name: Send coverage
42-
run: dmenv run -- codecov
30+
run: python -m poetry run codecov
4331
env:
4432
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)