Bump actions/upload-artifact from 4 to 7 #225
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: Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| tests: | |
| name: tests-python${{ matrix.python-version }}-${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| os: ["macOS-latest", "ubuntu-latest", "windows-latest"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Pip cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-${{ matrix.python-version }}-pip-tests-${{ hashFiles('pyproject.toml','requirements-dev.txt','constraints.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ matrix.python-version }}-pip-tests- | |
| ${{ runner.os }}-${{ matrix.python-version }}-pip- | |
| ${{ runner.os }}-${{ matrix.python-version }} | |
| - name: Install Deps | |
| run: python -m pip install -U tox setuptools virtualenv wheel | |
| - name: Install and Run Tests | |
| run: tox -e py | |
| if: runner.os != 'macOS' | |
| - name: Install and run tests macOS | |
| run: | | |
| tox -epy --notest | |
| .tox/py/bin/pip install gnureadline subunit2sql | |
| tox -epy | |
| if: runner.os == 'macOS' | |
| lint: | |
| name: pep8 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.8 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.8 | |
| - name: Pip cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-${{ matrix.python-version }}-pip-lint-${{ hashFiles('pyproject.toml','requirements-dev.txt','constraints.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ matrix.python-version }}-pip-lint- | |
| ${{ runner.os }}-${{ matrix.python-version }}-pip- | |
| ${{ runner.os }}-${{ matrix.python-version }}- | |
| - name: Install Deps | |
| run: python -m pip install -U tox | |
| - name: Run lint | |
| run: tox -epep8 | |
| cover: | |
| name: cover | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - name: Pip cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-${{ matrix.python-version }}-pip-lint-${{ hashFiles('pyproject.toml','requirements-dev.txt','constraints.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ matrix.python-version }}-pip-lint- | |
| ${{ runner.os }}-${{ matrix.python-version }}-pip- | |
| ${{ runner.os }}-${{ matrix.python-version }}- | |
| - name: Install Deps | |
| run: python -m pip install -U tox | |
| - name: Run coverxml | |
| run: tox -ecoverxml | |
| - name: codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: ./cover/coverage.xml # optional | |
| flags: unittests # optional | |
| name: stestr # optional | |
| fail_ci_if_error: true # optional (default = false) | |
| verbose: true # optional (default = false) | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| docs: | |
| name: docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3.8 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.8 | |
| - name: Pip cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-${{ matrix.python-version }}-pip-docs-${{ hashFiles('pyproject.toml','requirements-dev.txt','constraints.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip-docs- | |
| ${{ runner.os }}-pip- | |
| ${{ runner.os }}- | |
| - name: Install Deps | |
| run: python -m pip install -U tox | |
| - name: Build Docs | |
| run: tox -edocs | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: html_docs | |
| path: docs/_build |