commit d7f7c63b6097da46a0aa3826488b9361af0c4949 Author: Whyverum Date: Thu Nov 27 11:10:43 2025 +0700 Тестирование runner 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()