Skip to content

Drop python 3.8 and fix for numpy2.0 #31

Drop python 3.8 and fix for numpy2.0

Drop python 3.8 and fix for numpy2.0 #31

Workflow file for this run

name: testing
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# https://github.com/actions/cache/blob/main/examples.md#python---pip
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
- name: Test with pytest
run: |
python -m pytest -v --cov=spinspg --cov-report=xml tests/
- name: Upload coverage reports to Codecov
if: matrix.python-version == '3.10'
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
sudo apt-get install -y pandoc
- name: Install
run: |
python -m pip install --upgrade pip
pip install -e .[dev,docs]
- name: Build
run: |
sphinx-build docs docs_build