build(deps-dev): update diff-cover requirement from <8.1 to <9.1 #1667
Workflow file for this run
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: Continuous integration tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
concurrency: | |
group: build-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tox: | |
name: CI tests via Tox | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
py-ver-major: [3] | |
py-ver-minor: [8, 9, 10, 11, 12] | |
step: [lint, bandit, unit, mypy, memleak] | |
env: | |
py-semver: ${{ format('{0}.{1}', matrix.py-ver-major, matrix.py-ver-minor) }} | |
TOXENV: ${{ format('py{0}{1}-{2}', matrix.py-ver-major, matrix.py-ver-minor, matrix.step) }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.py-semver }} | |
cache: pip | |
cache-dependency-path: | | |
requirements.txt | |
tox.ini | |
- name: Upgrade setuptools and install tox | |
run: | | |
pip install -U pip setuptools wheel | |
pip install 'tox<4' tox-gh-actions | |
- name: MyPy cache | |
if: ${{ matrix.step == 'mypy' }} | |
uses: actions/cache@v4 | |
with: | |
path: .mypy_cache/${{ env.py-semver }} | |
key: mypy-${{ env.py-semver }} | |
- name: Test with tox | |
run: tox | |
- name: Upload coverage to Codecov | |
if: ${{ matrix.step == 'unit' }} | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
tox-style: | |
name: CI linters via Tox | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
step: [lintreadme, pydocstyle] | |
env: | |
py-semver: "3.12" | |
TOXENV: ${{ format('py312-{0}', matrix.step) }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.py-semver }} | |
- name: Cache for pip | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ matrix.step }}-${{ hashFiles('requirements.txt') }} | |
- name: Upgrade setuptools and install tox | |
run: | | |
pip install -U pip setuptools wheel | |
pip install 'tox<4' tox-gh-actions | |
- if: ${{ matrix.step == 'pydocstyle' && github.event_name == 'pull_request'}} | |
name: Create local branch for diff-quality for PRs | |
run: git branch ${{github.base_ref}} origin/${{github.base_ref}} | |
- name: Test with tox | |
run: tox | |
release_test: | |
name: Schema Salad release test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Cache for pip | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-release-${{ hashFiles('requirements.txt', 'test-requirements.txt') }} | |
- name: Install packages | |
run: | | |
pip install -U pip setuptools wheel | |
pip install virtualenv | |
- name: Release test | |
env: | |
RELEASE_SKIP: head | |
run: ./release-test.sh | |
build_test_container: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: record schema-salad version | |
run: pip install -U setuptools wheel && pip install setuptools_scm[toml] && python setup.py --version | |
- name: build & test schema_salad container | |
run: ./build-schema_salad-docker.sh |