Skip to content

Build(deps-dev): Bump pre-commit from 3.8.0 to 4.0.1 #551

Build(deps-dev): Bump pre-commit from 3.8.0 to 4.0.1

Build(deps-dev): Bump pre-commit from 3.8.0 to 4.0.1 #551

Workflow file for this run

name: Run Unit Tests
on:
# trigger on pull requests
pull_request:
# trigger on all commits to main
push:
branches:
- 'main'
# trigger on request
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
test:
name: test (${{ matrix.os }}, ${{ matrix.python }}, ${{ matrix.dependencies }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
include:
# Defaults to newest dependencies
- dependencies: 'newest'
# Other tests
- python: '3.8'
dependencies: 'oldest'
- os: 'macos-14'
python: '3.10'
dependencies: 'oldest'
- os: 'macos-14'
python: '3.12'
dependencies: 'newest'
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
submodules: "recursive"
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.python }}
- name: Install newest dependencies
run: |
pip install -r requirements/requirements-test.txt
if: ${{ matrix.dependencies == 'newest' }}
- name: Install oldest supported dependencies
# To prevent Dependabot from updating the pinnings in this "oldest"
# dependency list, we have to avoid the word "requirements" in the
# filename. That's why it is in the .github/ directory and named "reqs"
# instead of "requirements."
run: |
pip install -r .github/workflows/ci-oldest-reqs.txt
if: ${{ matrix.dependencies == 'oldest' }}
- name: Install the package
run: |
pip install -e .
- name: Test with pytest
run: |
pytest --cov=flow --cov-config=pyproject.toml --cov-report=xml tests/ -v
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0