Skip to content

refactor: Migrate from poetry to astral uv #16

refactor: Migrate from poetry to astral uv

refactor: Migrate from poetry to astral uv #16

# 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:
build:
name: Validate Commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webiny/action-conventional-commits@v1.3.0
#- uses: apache/skywalking-eyes/header@main
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'poetry'
- run:
poetry install -q
- name: MyPy static check
run: |
poetry run mypy --config-file pyproject.toml .
- name: Ruff Linting
run: |
poetry install
poetry run ruff check --config pyproject.toml .