Improve handling of inaccesible shadow file (#3122) #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: PyKanidm tests | |
"on": | |
push: | |
branches: | |
- "master" | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
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@v5 | |
with: | |
python-version: '3.10' | |
cache: 'poetry' | |
- name: Running mypy | |
run: | | |
cd pykanidm | |
python --version | |
poetry install | |
poetry run mypy --strict kanidm tests | |
- name: Running Linting | |
run: | | |
cd pykanidm | |
poetry install | |
poetry run ruff check kanidm tests | |
- name: Running pytest | |
run: | | |
cd pykanidm | |
poetry install | |
poetry run pytest -v -m 'not network' |