Skip to content

Commit

Permalink
Prepare deployment (#3)
Browse files Browse the repository at this point in the history
* 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
maxscheurer authored Apr 26, 2023
1 parent ff9b408 commit 538a672
Show file tree
Hide file tree
Showing 39 changed files with 2,138 additions and 4,398 deletions.
14 changes: 0 additions & 14 deletions .codecov.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,5 @@ ENV/

# other
*.zarr

responsefun/_version.py
12 changes: 0 additions & 12 deletions .lgtm.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

695 changes: 656 additions & 39 deletions LICENSE

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
ResponseFun
==============================

Fun with Response Functions
Fun with Response Functions in the Algebraic Diagrammatic Construction Framework.

### Development

A suitable `conda` environment for development can be created from the `ci_env.yml` file.

Tests can be run with `pytest responsefun`, or `pytest --pyargs responsefun` if the package is installed.
To exclude the slowest test, run `pytest -k "not slow" responsefun`.

Code style is enforced through `black` (formatting), `isort` (sorting import statements), and `ruff` (linting).

### Copyright

Copyright (c) 2023, The responsefun Developers
Copyright (c) 2023, The `responsefun` Developers


#### Acknowledgements
Expand Down
12 changes: 12 additions & 0 deletions ci_env.yml
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
243 changes: 0 additions & 243 deletions demo.ipynb

This file was deleted.

71 changes: 0 additions & 71 deletions devtools/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions devtools/conda-envs/test_env.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions devtools/conda-recipe/build.sh

This file was deleted.

27 changes: 0 additions & 27 deletions devtools/conda-recipe/meta.yaml

This file was deleted.

Loading

0 comments on commit 538a672

Please sign in to comment.