removed templates
This commit is contained in:
@@ -7,15 +7,25 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
setup-python-uv-dependencies:
|
||||
name: Setup Python and UV dependencies
|
||||
uses: ./.gitea/workflows/setup-python-uv-dependencies.yml
|
||||
with:
|
||||
python-version: ${{ vars.PYTHON_VERSION }}
|
||||
|
||||
code-quality:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
|
||||
- name: Install dependencies
|
||||
env:
|
||||
UV_LINK_MODE: copy
|
||||
run: uv sync
|
||||
|
||||
- name: Ruff lint
|
||||
run: ruff check .
|
||||
|
||||
|
||||
@@ -6,15 +6,17 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
setup-python:
|
||||
name: Setup Python
|
||||
uses: ./.gitea/workflows/setup-python.yml
|
||||
with:
|
||||
python-version: ${{ vars.PYTHON_VERSION }}
|
||||
|
||||
renovate-like:
|
||||
update-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Install uv and pip-review
|
||||
run: |
|
||||
pip install uv pip-review
|
||||
|
||||
@@ -8,19 +8,16 @@ on:
|
||||
- "v*.*.*"
|
||||
|
||||
jobs:
|
||||
setup-python:
|
||||
name: Setup Python
|
||||
uses: ./.gitea/workflows/setup-python.yml
|
||||
with:
|
||||
python-version: ${{ vars.PYTHON_VERSION }}
|
||||
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: ./.gitea/workflows/setup-python.yml
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ vars.PYTHON_VERSION }}
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
@@ -34,7 +31,7 @@ jobs:
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
uv pip install build --system
|
||||
uv sync --no-dev
|
||||
uv build
|
||||
|
||||
- name: Publish to Gitea Package Registry
|
||||
|
||||
@@ -6,14 +6,24 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
setup-python-uv-dependencies:
|
||||
name: Setup Python and UV dependencies
|
||||
uses: ./.gitea/workflows/setup-python-uv-dependencies.yml
|
||||
with:
|
||||
python-version: ${{ vars.PYTHON_VERSION }}
|
||||
|
||||
safety:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
|
||||
- name: Install dependencies
|
||||
env:
|
||||
UV_LINK_MODE: copy
|
||||
run: uv sync
|
||||
|
||||
- name: Run safety check
|
||||
run: safety check
|
||||
run: uv run safety check
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Setup Python Pipeline
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
python-version:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
setup-python-uv-dependencies:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
|
||||
- name: Install dependencies
|
||||
env:
|
||||
UV_LINK_MODE: copy
|
||||
run: uv sync
|
||||
@@ -1,20 +0,0 @@
|
||||
name: Setup Python Pipeline
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
python-version:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
setup-python:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ inputs.python-version }}
|
||||
@@ -11,10 +11,13 @@ jobs:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: ./.gitea/workflows/setup-python.yml
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ vars.PYTHON_VERSION }}
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
|
||||
@@ -7,16 +7,26 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
setup-python-uv-dependencies:
|
||||
name: Setup Python and UV dependencies
|
||||
uses: ./.gitea/workflows/setup-python-uv-dependencies.yml
|
||||
with:
|
||||
python-version: ${{ vars.PYTHON_VERSION }}
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
|
||||
- name: Install dependencies
|
||||
env:
|
||||
UV_LINK_MODE: copy
|
||||
run: uv sync
|
||||
|
||||
- name: Run pytest
|
||||
env:
|
||||
PYTHONPATH: .
|
||||
run: pytest
|
||||
run: uv run pytest
|
||||
|
||||
@@ -7,14 +7,24 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
setup-python-uv-dependencies:
|
||||
name: Setup Python and UV dependencies
|
||||
uses: ./.gitea/workflows/setup-python-uv-dependencies.yml
|
||||
with:
|
||||
python-version: ${{ vars.PYTHON_VERSION }}
|
||||
|
||||
type-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
|
||||
- name: Install dependencies
|
||||
env:
|
||||
UV_LINK_MODE: copy
|
||||
run: uv sync
|
||||
|
||||
- name: Run mypy
|
||||
run: mypy monitor_utils
|
||||
run: uv run mypy .
|
||||
|
||||
Reference in New Issue
Block a user