ci: update workflows to use hatch
This commit is contained in:
parent
56694ffa68
commit
d22fee2b0b
5
.github/workflows/cd.yml
vendored
5
.github/workflows/cd.yml
vendored
|
@ -24,9 +24,6 @@ jobs:
|
||||||
- name: install devbox
|
- name: install devbox
|
||||||
uses: jetpack-io/devbox-install-action@v0.8.0
|
uses: jetpack-io/devbox-install-action@v0.8.0
|
||||||
|
|
||||||
- name: install dependencies
|
|
||||||
run: devbox run poetry install
|
|
||||||
|
|
||||||
- name: run releaser.py
|
- name: run releaser.py
|
||||||
run: devbox run python releaser.py
|
run: devbox run python releaser.py
|
||||||
env:
|
env:
|
||||||
|
@ -34,7 +31,7 @@ jobs:
|
||||||
|
|
||||||
- name: build project
|
- name: build project
|
||||||
id: build
|
id: build
|
||||||
run: devbox run poetry build
|
run: devbox run hatch build
|
||||||
|
|
||||||
- name: duplicate non-versioned wheel
|
- name: duplicate non-versioned wheel
|
||||||
run: cp dist/surplus-*.whl dist/surplus-latest-py3-none-any.whl
|
run: cp dist/surplus-*.whl dist/surplus-latest-py3-none-any.whl
|
||||||
|
|
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
@ -19,18 +19,9 @@ jobs:
|
||||||
- name: install devbox
|
- name: install devbox
|
||||||
uses: jetpack-io/devbox-install-action@v0.7.0
|
uses: jetpack-io/devbox-install-action@v0.7.0
|
||||||
|
|
||||||
- name: install dependencies
|
|
||||||
run: devbox run poetry install
|
|
||||||
|
|
||||||
- name: build wheel
|
- name: build wheel
|
||||||
id: build
|
id: build
|
||||||
run: devbox run poetry build
|
run: devbox run hatch build
|
||||||
|
|
||||||
- name: analyse with mypy
|
- name: run checks
|
||||||
run: devbox run poetry run mypy .
|
run: hatch show check
|
||||||
|
|
||||||
- name: check for black formatting compliance
|
|
||||||
run: devbox run poetry run black --check .
|
|
||||||
|
|
||||||
- name: analyse isort compliance
|
|
||||||
run: devbox run poetry run isort --check *.py **/*.py
|
|
||||||
|
|
Loading…
Reference in a new issue