Skip to content

Commit

Permalink
Merge pull request #4 from hz-b/dev/feature/ci-badge
Browse files Browse the repository at this point in the history
[TASK] CI show status as badge
  • Loading branch information
PierreSchnizer authored Jul 11, 2024
2 parents 2dcba20 + 5533ad6 commit daa5124
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,28 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11" ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
numpy-version: [ "numpy<2.0", "numpy>=2.0" ]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.numpy-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
numpy-version: ${{ matrix.numpy-version }}
cache: 'pip'
cache-dependency-path: |
**/setup.cfg
**/requirements*.txt
**/pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# need to add that? ... seems so
pip install .
pip install '${{ matrix.numpy-version }}' .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[![CI](https://github.com/hz-b/bact-math-utils/actions/workflows/ci.yml/badge.svg)](https://github.com/hz-b/bact-math-utils/actions/workflows/ci.yml)

# bact-math-utils
Mathematical utilites for bact

0 comments on commit daa5124

Please sign in to comment.