From 9b898a44ca58fe65b6f1ebf31dc308378fd276ca Mon Sep 17 00:00:00 2001 From: sergey Date: Tue, 24 Sep 2024 23:41:15 +0300 Subject: [PATCH] test action --- .gitea/workflows/publish.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 83d1b2f..fcbd139 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -1,18 +1,19 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +name: test python +run-name: ${{ gitea.actor }} on: [push] + jobs: - Explore-Gitea-Actions: - runs-on: python + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ 3.12', 'pypy3' ] + name: Python ${{ matrix.python-version }} sample steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ gitea.status }}." \ No newline at end of file + - uses: actions/checkout@v2 + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + - run: python my_script.py \ No newline at end of file