mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
30 lines
747 B
YAML
30 lines
747 B
YAML
---
|
|
name: pykanidm - Python Linting
|
|
|
|
"on":
|
|
push:
|
|
pull_request:
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
pykanidm_lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
- name: Install poetry
|
|
run: pipx install poetry
|
|
- name: Set up Python 3.10
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
cache: 'poetry'
|
|
- name: Running tests
|
|
run: |
|
|
cd pykanidm
|
|
python -m pip install --quiet --no-cache-dir --upgrade poetry
|
|
poetry install
|
|
poetry run ruff tests kanidm
|