Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit ad5700d

Browse files
committed
Switch to poetry for CI
1 parent 4683eaa commit ad5700d

8 files changed

Lines changed: 860 additions & 121 deletions

File tree

.github/workflows/doc-check.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
with:
1616
python-version: 3.7
1717

18-
- name: Install dmenv
19-
uses: TankerHQ/dmenv-install-action@v1.0.0
20-
with:
21-
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
2222
2323
- name: Prepare project for development
24-
run: dmenv install
24+
run: python -m poetry install
2525

2626
- name: Check doc builds without warnings
2727
run: |
28-
dmenv run -- sphinx-build -W docs docs/_build/html
28+
poetry run sphinx-build -W docs docs/_build/html
2929
3030
3131

.github/workflows/linters.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ jobs:
1616
with:
1717
python-version: 3.7
1818

19-
- name: Install dmenv
20-
uses: TankerHQ/dmenv-install-action@v1.0.0
21-
with:
22-
dmenv-version: 0.20.0
19+
- name: Install and configure poetry
20+
run: |
21+
python -m pip install poetry
22+
python -m poetry config virtualenvs.create false
2323
2424
- name: Prepare project for development
25-
run: dmenv install
25+
run: python -m poetry install
2626

2727
- name: Run black
2828
run: |
29-
dmenv run -- black --check .
29+
python -m poetry run black --check .
3030
3131
- name: Run mypy
3232
run: |
33-
MYPYPATH=stubs dmenv run -- mypy --ignore-missing-imports --strict cli_ui
33+
MYPYPATH=stubs python -m poetry run mypy --ignore-missing-imports --strict cli_ui
3434
3535
- name: Run pyflakes
3636
run: |
37-
dmenv run -- pyflakes cli_ui/__init__.py cli_ui/tests/test_cli_ui.py
37+
python -m poetry run pyflakes cli_ui/__init__.py cli_ui/tests/test_cli_ui.py
3838
3939

.github/workflows/tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ jobs:
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323

24-
- name: Install dmenv
25-
uses: TankerHQ/dmenv-install-action@v1.0.0
26-
with:
27-
dmenv-version: 0.20.0
24+
- name: Install and configure poetry
25+
run: |
26+
python -m pip install poetry
27+
python -m poetry config virtualenvs.create false
2828
2929
- name: Prepare project for development
30-
run: dmenv install
30+
run: python -m poetry install
3131

3232
- name: Run tests
33-
run: dmenv run -- pytest --cov . --cov-report term
34-
33+
run: |
34+
python -m pytest --cov cli_ui
35+
python -m codecov

0 commit comments

Comments
 (0)