mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
reducing action concurrency load (#1598)
* reducing action concurrency load * fixing up ruff syntax * fixes
This commit is contained in:
parent
42dd8ee0a9
commit
d22dc28698
2
.github/workflows/kanidm_individual_book.yml
vendored
2
.github/workflows/kanidm_individual_book.yml
vendored
|
@ -53,7 +53,7 @@ jobs:
|
||||||
mdbook build *book
|
mdbook build *book
|
||||||
rm -rf ./docs/
|
rm -rf ./docs/
|
||||||
mkdir -p ./docs/${{ inputs.tag }}/rustdoc/
|
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/
|
mv ./target/doc/* ./docs/${{ inputs.tag }}/rustdoc/
|
||||||
|
|
||||||
- name: pykanidm docs
|
- name: pykanidm docs
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
---
|
---
|
||||||
name: pykanidm - mypy
|
name: PyKanidm tests
|
||||||
|
|
||||||
"on":
|
"on":
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- "master"
|
||||||
pull_request:
|
pull_request:
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
pykanidm_mypy:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -25,6 +27,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd pykanidm
|
cd pykanidm
|
||||||
python --version
|
python --version
|
||||||
python -m pip install --quiet --no-cache-dir --upgrade poetry
|
|
||||||
poetry install
|
poetry install
|
||||||
poetry run mypy --strict kanidm tests
|
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
|
29
.github/workflows/pykanidm_pylint.yml
vendored
29
.github/workflows/pykanidm_pylint.yml
vendored
|
@ -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
|
|
35
.github/workflows/pykanidm_pytest.yml
vendored
35
.github/workflows/pykanidm_pytest.yml
vendored
|
@ -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
|
|
3
.github/workflows/wasm_test.yml
vendored
3
.github/workflows/wasm_test.yml
vendored
|
@ -8,6 +8,9 @@ env:
|
||||||
SCCACHE_GHA_ENABLED: "true"
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
RUSTC_WRAPPER: "sccache"
|
RUSTC_WRAPPER: "sccache"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
wasm_test:
|
wasm_test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
4
.github/workflows/windows_build.yml
vendored
4
.github/workflows/windows_build.yml
vendored
|
@ -17,6 +17,10 @@ env:
|
||||||
SCCACHE_GHA_ENABLED: "true"
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
RUSTC_WRAPPER: "sccache"
|
RUSTC_WRAPPER: "sccache"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows_build_kanidm:
|
windows_build_kanidm:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
Loading…
Reference in a new issue