diff --git a/.github/workflows/pythonci.yml b/.github/workflows/pythonci.yml new file mode 100644 index 0000000..14f044d --- /dev/null +++ b/.github/workflows/pythonci.yml @@ -0,0 +1,37 @@ +name: Python CI +on: [push] +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: astral-sh/ruff-action@v3 + + ruff-format-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: astral-sh/ruff-action@v3 + with: + args: "format --check --diff" + + ty: + runs-on: ubuntu-latest + steps: + - run: python3 -m pip install uv + - uses: actions/checkout@v5 + - run: python3 -m uv sync + - run: python3 -m uv run ty check --output-format github + + coverage: + runs-on: ubuntu-latest + steps: + - run: python3 -m pip install uv + - uses: actions/checkout@v5 + - run: python3 -m uv sync + - run: python3 -m uv run coverage run -m unittest -v + - run: python3 -m uv run coverage xml + - uses: irongut/CodeCoverageSummary@v1.3.0 + with: + filename: coverage.xml +