Skip to content

Commit 5abc60d

Browse files
committed
Bump dependencies
1 parent bb7da0f commit 5abc60d

File tree

10 files changed

+581
-883
lines changed

10 files changed

+581
-883
lines changed

.github/actions/setup/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Setup Python and uv'
2+
description: 'Sets up Python, uv, and installs dependencies'
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-python@v2
9+
with:
10+
python-version: '3.12'
11+
- name: Install uv
12+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
13+
shell: bash
14+
- name: Install dependencies
15+
run: |
16+
uv venv
17+
uv pip sync requirements.txt
18+
shell: bash

.github/workflows/publish.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,15 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
python-version: [3.12]
13-
poetry-version: [1.8.3]
1413
os: [ubuntu-latest]
1514
runs-on: ${{ matrix.os }}
1615
steps:
1716
- uses: actions/checkout@v2
18-
- uses: actions/setup-python@v2
19-
with:
20-
python-version: ${{ matrix.python-version }}
21-
- name: Run image
22-
uses: abatilo/[email protected]
23-
with:
24-
poetry-version: ${{ matrix.poetry-version }}
17+
- uses: ./.github/actions/setup
2518
- name: Publish
2619
env:
2720
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
2821
run: |
29-
poetry config pypi-token.pypi $PYPI_TOKEN
30-
poetry publish --build
22+
uv pip install twine
23+
uv dist build
24+
twine upload dist/* -u __token__ -p $PYPI_TOKEN

.github/workflows/tests.yml

Lines changed: 5 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,19 @@ name: Push
22
on: [push]
33

44
jobs:
5-
pytest:
5+
test:
66
strategy:
77
fail-fast: false
88
matrix:
99
python-version: [3.12]
10-
poetry-version: [1.8.3]
1110
os: [ubuntu-latest]
1211
runs-on: ${{ matrix.os }}
1312
steps:
1413
- uses: actions/checkout@v2
15-
- uses: actions/setup-python@v2
16-
with:
17-
python-version: ${{ matrix.python-version }}
18-
- name: Run image
19-
uses: abatilo/[email protected]
20-
with:
21-
poetry-version: ${{ matrix.poetry-version }}
22-
- name: Install dependencies
23-
run: poetry install
14+
- uses: ./.github/actions/setup
2415
- name: Run tests
25-
run: poetry run pytest
26-
ruff:
27-
strategy:
28-
fail-fast: false
29-
matrix:
30-
python-version: [3.12]
31-
poetry-version: [1.8.3]
32-
os: [ubuntu-latest]
33-
runs-on: ${{ matrix.os }}
34-
steps:
35-
- uses: actions/checkout@v2
36-
- uses: actions/setup-python@v2
37-
with:
38-
python-version: ${{ matrix.python-version }}
39-
- name: Run image
40-
uses: abatilo/[email protected]
41-
with:
42-
poetry-version: ${{ matrix.poetry-version }}
43-
- name: Install dependencies
44-
run: poetry install
16+
run: uv run pytest
4517
- name: Check ruff
46-
run: poetry run ruff check .
47-
48-
mypy:
49-
strategy:
50-
fail-fast: false
51-
matrix:
52-
python-version: [3.12]
53-
poetry-version: [1.8.3]
54-
os: [ubuntu-latest]
55-
runs-on: ${{ matrix.os }}
56-
steps:
57-
- uses: actions/checkout@v2
58-
- uses: actions/setup-python@v2
59-
with:
60-
python-version: ${{ matrix.python-version }}
61-
- name: Run image
62-
uses: abatilo/[email protected]
63-
with:
64-
poetry-version: ${{ matrix.poetry-version }}
65-
- name: Install dependencies
66-
run: poetry install
18+
run: uv run ruff check .
6719
- name: Check mypy
68-
run: poetry run mypy . --check-untyped-defs --disallow-untyped-defs --ignore-missing-imports
20+
run: uv run mypy . --check-untyped-defs --disallow-untyped-defs --ignore-missing-imports

default.nix

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)