-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cleanup, restructure to pyproject.toml, verioningit * clean up example * edit license * more test restructuring * add simple CI * fix respondo version * add pytest coverage * try again * without coverage? * only smoke? * try again * blas as mkl * full suite * remove unnecessary duplicate test * linting on ci, raises refactoring * forgot bash * grand reformatting * make linter etc happy
- Loading branch information
1 parent
ff9b408
commit 538a672
Showing
39 changed files
with
2,138 additions
and
4,398 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Python ${{ matrix.version }} - ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
matrix: | ||
include: | ||
- {version: '3.9', os: ubuntu-latest} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
environment-file: ci_env.yml | ||
activate-environment: ci-env | ||
miniforge-variant: Mambaforge | ||
use-mamba: true | ||
miniforge-version: latest | ||
python-version: ${{ matrix.version }} | ||
- name: Conda Info | ||
run: | | ||
conda info | ||
conda list | ||
- name: Install package | ||
run: | | ||
pip install ."[test]" | ||
- name: Run tests | ||
run: | | ||
pytest --pyargs responsefun -v -s | ||
formatting: | ||
name: Code style | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
environment-file: ci_env.yml | ||
activate-environment: ci-env | ||
miniforge-variant: Mambaforge | ||
use-mamba: true | ||
miniforge-version: latest | ||
python-version: 3.9 | ||
- name: Conda Info | ||
run: | | ||
conda info | ||
conda list | ||
- name: Run ruff and isort | ||
run: | | ||
ruff responsefun | ||
isort -rc responsefun |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,3 +105,5 @@ ENV/ | |
|
||
# other | ||
*.zarr | ||
|
||
responsefun/_version.py |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: ci-env | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- libblas =*=*mkl | ||
- adcc >=0.15.4 | ||
- respondo >=0.0.4 | ||
- numpy <=1.23.5 | ||
- isort | ||
- ruff | ||
- pip: | ||
- pyscf |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.