reducing action concurrency load (#1598)

* reducing action concurrency load
* fixing up ruff syntax
* fixes
This commit is contained in:
James Hodgkinson 2023-05-06 22:54:05 +10:00 committed by GitHub
parent 42dd8ee0a9
commit d22dc28698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 68 deletions

View file

@ -53,7 +53,7 @@ jobs:
mdbook build *book
rm -rf ./docs/
mkdir -p ./docs/${{ inputs.tag }}/rustdoc/
mv ./*book/book/ ./docs/${{ inputs.tag }}
mv ./*book/book/* ./docs/${{ inputs.tag }}
mv ./target/doc/* ./docs/${{ inputs.tag }}/rustdoc/
- name: pykanidm docs

View file

@ -1,14 +1,16 @@
---
name: pykanidm - mypy
name: PyKanidm tests
"on":
push:
branches:
- "master"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pykanidm_mypy:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -25,6 +27,15 @@ jobs:
run: |
cd pykanidm
python --version
python -m pip install --quiet --no-cache-dir --upgrade poetry
poetry install
poetry run mypy --strict kanidm tests
- name: Running Linting
run: |
cd pykanidm
poetry install
poetry run ruff kanidm tests
- name: Running pytest
run: |
cd pykanidm
poetry install
poetry run pytest -v

View file

@ -1,29 +0,0 @@
---
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

View file

@ -1,35 +0,0 @@
---
name: pykanidm - pytest
"on":
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pykanidm_pytest:
strategy:
matrix:
python_version:
- "3.9"
- "3.10"
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 ${{matrix.python_version}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python_version}}
cache: 'poetry'
- name: Running pytest
run: |
cd pykanidm
python -m pip install --quiet --no-cache-dir --upgrade poetry
poetry install
poetry run pytest -v

View file

@ -8,6 +8,9 @@ env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
wasm_test:
runs-on: ubuntu-latest

View file

@ -17,6 +17,10 @@ env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
windows_build_kanidm:
runs-on: windows-latest