Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 262abbb

Browse files
committed
python
1 parent 8c7ce6e commit 262abbb

File tree

7 files changed

+235
-18
lines changed

7 files changed

+235
-18
lines changed

.github/workflows/deploy.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@ jobs:
2828
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
2929
use-cache: 'true'
3030

31-
- name: Set up Python
32-
uses: actions/setup-python@v5
31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v5
3333
with:
34-
python-version: '3.12'
35-
cache: 'pip'
34+
enable-cache: true
3635

37-
- name: Install dependencies
38-
run: |
39-
python -m pip install --upgrade pip
40-
pip install -r deploy/requirements.txt
36+
- name: Set up Python
37+
working-directory: deploy
38+
run: uv python install
4139

4240
- name: Add Server IP to Ansible hosts
4341
run: |

deploy/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

deploy/README.md

Whitespace-only changes.

deploy/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main():
2+
print("Hello from deploy!")
3+
4+
5+
if __name__ == "__main__":
6+
main()

deploy/pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[project]
2+
name = "deploy"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"ansible>=11.6.0",
9+
]

deploy/requirements.txt

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

deploy/uv.lock

Lines changed: 213 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)