Skip to content

Commit 6c0a34c

Browse files
CI
1 parent 1446dee commit 6c0a34c

2 files changed

Lines changed: 30 additions & 64 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,17 @@ jobs:
2222
needs: release-please
2323
if: ${{ needs.release-please.outputs.release_created }}
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v6
2626

27-
- uses: actions/setup-python@v2
28-
with:
29-
python-version: "3.11"
30-
31-
- name: Install poetry
32-
run: pip install poetry
33-
34-
- name: Determine dependencies
35-
run: poetry lock
27+
- name: Setup pixi
28+
uses: prefix-dev/setup-pixi@v0
3629

37-
- uses: actions/setup-python@v4
38-
with:
39-
python-version: "3.11"
40-
cache: poetry
41-
42-
- name: Install Dependencies using Poetry
30+
- name: Build source and wheel distribution + check build
4331
run: |
44-
poetry install
32+
pixi run check-build
4533
46-
- name: Publish to PyPi
47-
env:
48-
PYPI_USERNAME: __token__
49-
PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
50-
run: poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
34+
- name: Publish to PyPI
35+
uses: pypa/gh-action-pypi-publish@release/v1
36+
with:
37+
user: __token__
38+
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/test.yml

Lines changed: 20 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,62 +8,40 @@ on:
88
branches-ignore: []
99

1010
jobs:
11-
linting:
11+
formatting:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out the code
15-
uses: actions/checkout@v3
16-
17-
- uses: actions/setup-python@v4
18-
with:
19-
python-version: "3.11"
20-
21-
- name: Install poetry
22-
run: pip install poetry
23-
24-
- name: Determine dependencies
25-
run: poetry lock
15+
uses: actions/checkout@v5
2616

27-
- uses: actions/setup-python@v4
28-
with:
29-
python-version: "3.11"
30-
cache: poetry
31-
32-
- name: Install Dependencies using Poetry
33-
run: poetry install
17+
- name: Setup pixi
18+
uses: prefix-dev/setup-pixi@v0
3419

3520
- name: Check formatting
36-
run: poetry run ruff format --check .
37-
38-
- name: Lint
39-
run: poetry run ruff check .
21+
run: pixi run format --check .
4022

41-
testing:
23+
linting:
4224
runs-on: ubuntu-latest
4325
steps:
44-
- uses: actions/checkout@v3
45-
46-
- uses: actions/setup-python@v4
47-
with:
48-
python-version: "3.11"
26+
- name: Check out the code
27+
uses: actions/checkout@v5
4928

50-
- name: Install poetry
51-
run: pip install poetry
29+
- name: Setup pixi
30+
uses: prefix-dev/setup-pixi@v0
5231

53-
- name: Determine dependencies
54-
run: poetry lock
32+
- name: Check code
33+
run: pixi run lint
5534

56-
- uses: actions/setup-python@v4
57-
with:
58-
python-version: "3.11"
59-
cache: poetry
35+
testing:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v6
6039

61-
- name: Install dependencies
62-
run: |
63-
poetry install
40+
- name: Setup pixi
41+
uses: prefix-dev/setup-pixi@v0
6442

6543
- name: Run pytest
66-
run: poetry run coverage run -m pytest tests/tests.py
44+
run: pixi run test -v
6745

6846
- name: Run Coverage
69-
run: poetry run coverage report -m
47+
run: pixi run coverage-report

0 commit comments

Comments
 (0)