From d7f7c63b6097da46a0aa3826488b9361af0c4949 Mon Sep 17 00:00:00 2001 From: Whyverum Date: Thu, 27 Nov 2025 11:10:43 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20runner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test-python.yaml | 21 +++++++++++++++++++ .idea/.gitignore | 8 +++++++ .idea/TestRunnerGitea.iml | 10 +++++++++ .idea/inspectionProfiles/Project_Default.xml | 6 ++++++ .../inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 +++++++ .idea/vcs.xml | 6 ++++++ README.md | 3 +++ script/__init__.py | 0 script/main.py | 12 +++++++++++ 11 files changed, 86 insertions(+) create mode 100644 .gitea/workflows/test-python.yaml create mode 100644 .idea/.gitignore create mode 100644 .idea/TestRunnerGitea.iml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 README.md create mode 100644 script/__init__.py create mode 100644 script/main.py diff --git a/.gitea/workflows/test-python.yaml b/.gitea/workflows/test-python.yaml new file mode 100644 index 0000000..7521c68 --- /dev/null +++ b/.gitea/workflows/test-python.yaml @@ -0,0 +1,21 @@ +name: Test Python Runner + +on: + push: + branches: + - main + +jobs: + python-job: + runs-on: ubuntu-latest # должен совпадать с label runner + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Python + run: | + sudo apt update + sudo apt install -y python3 python3-pip + + - name: Run Python script + run: python3 script/hello.py diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/TestRunnerGitea.iml b/.idea/TestRunnerGitea.iml new file mode 100644 index 0000000..a1aa44d --- /dev/null +++ b/.idea/TestRunnerGitea.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..7c04147 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..6fbb535 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..b0185c6 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..380c4a3 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Test Gitea Python Runner + +Тестовый репозиторий для проверки Gitea Actions runner с Python-скриптом. diff --git a/script/__init__.py b/script/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/script/main.py b/script/main.py new file mode 100644 index 0000000..dbe528a --- /dev/null +++ b/script/main.py @@ -0,0 +1,12 @@ +# Простой тестовый скрипт +import sys +import platform + +def main() -> None: + print("Hello from Python script!") + print(f"Python version: {platform.python_version()}") + print(f"Running on: {platform.system()} {platform.release()}") + sys.exit(0) + +if __name__ == "__main__": + main()