Admin improvements #9
This file contains hidden or 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: Unit tests | |
| env: | |
| # This should match the default python_version build arg | |
| PYTHON_VERSION: 3.8 | |
| TOX_ENV: py38 | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| pull_request: | |
| jobs: | |
| run_linting: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/ruff-action@v3 | |
| run_tests: | |
| strategy: | |
| matrix: | |
| include: | |
| - python_version: "3.10" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python_version }} | |
| - name: install uv for speedup | |
| run: pip install uv | |
| - name: install test tools | |
| run: | | |
| uv pip install \ | |
| --system \ | |
| -r requirements.txt \ | |
| -r test-requirements.txt \ | |
| . | |
| - name: init stestr repo | |
| run: stestr init | |
| - name: run stestr tests | |
| run: stestr run | |
| - name: list failing tests | |
| run: stestr failing --list | |
| if: always() #run even if tests fail |