diff --git a/.gitea/workflows/python-action-test.yml b/.gitea/workflows/python-action-test.yml index 0f33648..eb2a576 100644 --- a/.gitea/workflows/python-action-test.yml +++ b/.gitea/workflows/python-action-test.yml @@ -1,27 +1,29 @@ -name: Python Action Test -run-name: ${{ gitea.actor }} -on: - push: - branches: [main] - pull_request: - branches: [main] +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] jobs: - test: + Explore-Gitea-Actions: runs-on: ubuntu-22.04 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@v4 - - name: Set up Python uses: actions/setup-python@v5 with: python-version: 3.14 - - - name: Install test dependencies + - name: Install uv run: | python -m pip install --upgrade pip - python -m pip install pytest - - - name: Run unit tests - run: pytest + python -m pip install uv + - name: Install dependencies with uv + run: uv install + - name: Run tests + run: uv run pytest + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/README.md b/README.md index b7f915f..f3d895a 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,9 @@ ```bash python main.py -python -m pip install pytest -pytest +python -m pip install uv +uv install +uv run pytest ``` ## Gitea Actions diff --git a/pyproject.toml b/pyproject.toml index 0d6c0cf..4946c29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,4 +4,4 @@ version = "0.1.0" description = "Add your description here" readme = "README.md" requires-python = ">=3.14" -dependencies = [] +dependencies = ["pytest"]