Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbnz committed Jan 26, 2025
1 parent e2adccc commit f4ad466
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 33 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.11" ]
matplotlib-version: [ "3.5.3", "3.7.1" ]
python-version: [3.11, 3.13]
matplotlib-version: [ "3.7.5", "3.10.0" ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
architecture: x64
Expand All @@ -42,7 +42,8 @@ jobs:
run: pytest --cov-report=xml

- name: Upload coverage report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
files: coverage.xml
flags: "Matplotlib-${{ matrix.matplotlib-version}}-Python-${{ matrix.python-version }}"
token: ${{ secrets.CODECOV_TOKEN }}
23 changes: 5 additions & 18 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,15 @@ jobs:
run-linters:
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
id: setup
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: 3.x
architecture: x64

- name: Check import ordering with isort
id: isort
continue-on-error: true
uses: isort/isort-action@master

- name: Check code style with Black
id: black
continue-on-error: true
uses: psf/black@stable

- name: Check overall status
run: |
if [ ${{steps.isort.outcome}} = "failure" ]; then exit 1; fi
if [ ${{steps.black.outcome}} = "failure" ]; then exit 1; fi
- name: Check with ruff
uses: astral-sh/ruff-action@v3
15 changes: 5 additions & 10 deletions .github/workflows/matplotlib-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Decide on Python version
id: mpl-main-nep29
uses: mstimberg/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "${{ steps.mpl-main-nep29.outputs.max-python }}"
python-version: 3.11
architecture: x64

- name: Install system libraries
Expand All @@ -47,7 +41,8 @@ jobs:
run: pytest --cov-report=xml

- name: Upload coverage report
uses: codecov/codecov-action@v2.1.0
uses: codecov/codecov-action@v5
with:
files: coverage.xml
name: "Matplob main branch ${{ steps.mpl-main-version.outputs.matplotlib-version }}"
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit f4ad466

Please sign in to comment.