Bump actions/setup-python from 4 to 5 #77
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: CI Tests | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
black-format: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: psf/black@stable | |
with: | |
options: "--check --diff" | |
src: "./src ./tests" | |
version: "24.4.2" | |
flake8-lint: | |
name: Lint Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: flake8 Lint | |
uses: py-actions/flake8@v2 | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
- os: macos-latest | |
python-version: "3.11" | |
- os: macos-latest | |
python-version: "3.12" | |
steps: | |
- name: Checkout empyrical | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install empyrical | |
run: | | |
python -VV | |
python -m pip install --upgrade pip setuptools wheel | |
pip install tox tox-gh-actions | |
pip install -e .[test] | |
- name: Unittests with tox & pytest | |
run: tox | |
- name: Upload coverage data to Codecov | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: false | |
name: codecov-umbrella | |
verbose: true |