Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

chore: linting

chore: linting #54

Workflow file for this run

name: Build
permissions:
statuses: write
checks: write
on:
pull_request:
branches:
- main
push:
branches:
- main
paths-ignore:
- '*.md'
- '*.puml'
- 'cspell.json'
- '.github/workflows/release.yaml'
jobs:
build_job:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 20
- uses: wagoid/commitlint-github-action@v5
with:
configFile: .commitlintrc.yml
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: Gr1N/setup-poetry@v8
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
- run: |
poetry install
- uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: chartboost/ruff-action@v1
with:
version: 0.0.280
args: --version
- run: just test
- name: test report junit
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: test report ${{ matrix.python-version }}
path: ./test-*.xml
reporter: java-junit
- name: failure logs
if: ${{ failure() }}
run:
docker ps