Skip to content

Commit

Permalink
CI: Add workflow testing against NumPy v2
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamad committed Aug 14, 2024
1 parent a2cdb67 commit 26394e6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci_np2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: conda-build (NumPy v2)

on: [push]

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment_np2.yml --name base
- name: Test with pytest
run: |
conda install pytest
pytest
18 changes: 18 additions & 0 deletions environment_np2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: qe
channels:
- conda-forge
- defaults
dependencies:
- coverage
- numpy>=2
- scipy
- pandas
- numba
- sympy
- ipython
- flake8
- requests
- urllib3>=2
- flit
- chardet # python>3.9,osx
- pytest

0 comments on commit 26394e6

Please sign in to comment.