Skip to content

refactor: Migrate from poetry to astral uv #17

refactor: Migrate from poetry to astral uv

refactor: Migrate from poetry to astral uv #17

# Copyright 2023 The ORTHW Project Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2023 Helio Chissini de Castro
name: Validation
on:
workflow_dispatch:
pull_request:
paths-ignore:
- "**.md"
push:
branches: [main]
jobs:
commitlint:
name: Commit Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: webiny/action-conventional-commits@v1.3.0
mypy:
needs: commitlint
name: MyPy Python linter
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install mypy
run: pip install mypy
- name: Run mypy
uses: sasanquaneuf/mypy-github-action@releases/v1.3
with:
checkName: "mypy" # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ruff:
needs: commitlint
name: Ruff Python Linter
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Ruff Check
uses: astral-sh/ruff-action@v3
with:
args: "check --config pyproject.toml"
- name: Ruff Format
uses: astral-sh/ruff-action@v3
with:
args: "format --check --config pyproject.toml"