Documentation: Minor improvements across the board #370
Workflow file for this run
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: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-vanilla: | |
| name: " | |
| Vanilla: Python ${{ matrix.python-version }} | |
| " | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ['ubuntu-latest'] | |
| python-version: [ | |
| '3.8', | |
| '3.9', | |
| '3.10', | |
| '3.11', | |
| '3.12', | |
| '3.13', | |
| '3.14', | |
| ] | |
| env: | |
| OS: ${{ matrix.os }} | |
| PYTHON: ${{ matrix.python-version }} | |
| steps: | |
| - name: Acquire sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| cache: 'pip' | |
| cache-dependency-path: | |
| pyproject.toml | |
| - name: Set up project | |
| run: | | |
| # `setuptools 0.64.0` adds support for editable install hooks (PEP 660). | |
| # https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400 | |
| pip install "setuptools>=64" --upgrade | |
| # Install package in editable mode. | |
| pip install --use-pep517 --prefer-binary --editable=.[develop,test] | |
| - name: Set timezone | |
| uses: szenius/[email protected] | |
| with: | |
| timezoneLinux: "Europe/Berlin" | |
| timezoneMacos: "Europe/Berlin" | |
| timezoneWindows: "W. Europe Standard Time" | |
| - name: Run linters and software tests | |
| run: | | |
| poe lint | |
| poe test -- -m 'not (dynamodb or mongodb)' | |
| # https://github.com/codecov/codecov-action | |
| - name: Upload coverage results to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| files: ./coverage.xml | |
| flags: vanilla | |
| env_vars: OS,PYTHON | |
| name: codecov-umbrella | |
| fail_ci_if_error: true | |
| test-dynamodb: | |
| name: " | |
| DynamoDB: Python ${{ matrix.python-version }} | |
| " | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ['ubuntu-latest'] | |
| python-version: [ | |
| '3.8', | |
| '3.9', | |
| '3.10', | |
| '3.11', | |
| '3.12', | |
| '3.13', | |
| '3.14', | |
| ] | |
| env: | |
| OS: ${{ matrix.os }} | |
| PYTHON: ${{ matrix.python-version }} | |
| steps: | |
| - name: Acquire sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| cache: 'pip' | |
| cache-dependency-path: | |
| pyproject.toml | |
| - name: Set up project | |
| run: | | |
| # `setuptools 0.64.0` adds support for editable install hooks (PEP 660). | |
| # https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400 | |
| pip install "setuptools>=64" --upgrade | |
| # Install package in editable mode. | |
| pip install --use-pep517 --prefer-binary --editable=.[develop,test] | |
| - name: Run linters and software tests | |
| run: poe test -- -m 'dynamodb' | |
| # https://github.com/codecov/codecov-action | |
| - name: Upload coverage results to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| files: ./coverage.xml | |
| flags: dynamodb | |
| env_vars: OS,PYTHON | |
| name: codecov-umbrella | |
| fail_ci_if_error: true | |
| test-mongodb: | |
| name: " | |
| MongoDB: Python ${{ matrix.python-version }} | |
| " | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ['ubuntu-latest'] | |
| python-version: [ | |
| '3.9', | |
| '3.10', | |
| '3.11', | |
| '3.12', | |
| '3.13', | |
| '3.14', | |
| ] | |
| env: | |
| OS: ${{ matrix.os }} | |
| PYTHON: ${{ matrix.python-version }} | |
| steps: | |
| - name: Acquire sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| cache: 'pip' | |
| cache-dependency-path: | |
| pyproject.toml | |
| - name: Set up project | |
| run: | | |
| # `setuptools 0.64.0` adds support for editable install hooks (PEP 660). | |
| # https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400 | |
| pip install "setuptools>=64" --upgrade | |
| # Install package in editable mode. | |
| pip install --use-pep517 --prefer-binary --editable=.[mongodb,tikray,develop,test] | |
| - name: Run linters and software tests | |
| run: poe test -- -m 'mongodb' | |
| # https://github.com/codecov/codecov-action | |
| - name: Upload coverage results to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| files: ./coverage.xml | |
| flags: mongodb | |
| env_vars: OS,PYTHON | |
| name: codecov-umbrella | |
| fail_ci_if_error: true |