Skip to content

Commit 08d20fa

Browse files
committed
add actions to ui2py
1 parent 5c8a05a commit 08d20fa

File tree

8 files changed

+140
-2
lines changed

8 files changed

+140
-2
lines changed

.github/workflows/buld.yaml

Whitespace-only changes.

.github/workflows/ui2py.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ui2py
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
convert-ui:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup system
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y curl
18+
- name: Install uv
19+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
20+
- name: Install dependencies
21+
run: uv sync
22+
- name: Convert .ui files to .py
23+
run: uv run python convert_ui.py

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ venv
22
__pycache__
33
db
44
data_base
5+
build
6+
dist
7+
*.spec
8+
*.pyc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ You can find details on the remaining classes in [`docs`](/docs) directory.
7272
### How to run it
7373
One command with `uv`:
7474
```sh
75-
uv run python schoolring/views.py
75+
uv run python schoolring
7676
```
7777

7878
### Questions | Contribute

docs/technical_specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@
145145
- `LginData` и `RegistrData` оба класса наледоются от NamedTuple и используются для храниения, передачи, введёных пользователем, данных.
146146
- `RingManager` агрегирует данные рассписаня и воспроизведение мелодии
147147
- `LoginChecker` и `RegistrChecker` у каждого из классов есть свойство `is_correct` котрое равно True если данные веднеы коректно и проходят проверку. Или False во всех остальных случаях
148-
- `DataBaseManager` экземпляры этого класса могут создаваться в других классах и “брать на себя” всё управление базой даных
148+
- `DataBaseManager` экземпляры этого класса могут создаваться в других классах и “брать на себя” всё управление базой даных

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ dependencies = [
1313
"pyqt6-sip>=13.10.2",
1414
"schedule>=1.2.2",
1515
]
16+
17+
[dependency-groups]
18+
dev = [
19+
"pyinstaller>=6.14.0",
20+
]

uv.lock

Lines changed: 106 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)