Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major update of reaction-network #169

Merged
merged 188 commits into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
70d2372
Merge remote-tracking branch 'upstream/main' into dev
mattmcdermott May 30, 2022
09c19f4
black
mattmcdermott May 30, 2022
597e0d5
Add reactant and product fraction methods
mattmcdermott May 30, 2022
3a1fb47
reformat imports and add new InterfaceReactionHull class
mattmcdermott Jun 1, 2022
7458dca
implement decomposition energy , num paths, and plotting funcs
mattmcdermott Jun 4, 2022
d6e167b
implement normalization of selectivity
mattmcdermott Jun 6, 2022
9b15245
add some more tests for IRH, debugging selectivity
mattmcdermott Jun 18, 2022
ed3a617
add nonrecursive solution
mattmcdermott Jun 21, 2022
cc996cd
minor refactor of reactions and IRH
mattmcdermott Jun 22, 2022
1804906
add custom Composition class with caching
mattmcdermott Jun 22, 2022
c695cdc
add more caching, optimize equality methods
mattmcdermott Jun 23, 2022
df8fda5
add caching to CPD
mattmcdermott Jun 23, 2022
53dd167
try implementation of multiprocessing
mattmcdermott Jun 23, 2022
572a38c
change pool init
mattmcdermott Jun 23, 2022
0e9102a
implement multiprocessing for other enumerators, fix imports
mattmcdermott Jun 23, 2022
476158c
clean up imports again
mattmcdermott Jun 23, 2022
3da7390
try different chunk sizes
mattmcdermott Jun 24, 2022
8bc2e23
back to using Ray: change parallelization approach
mattmcdermott Jun 24, 2022
e7849f5
fix imports, logging, add sensitivity calculator
mattmcdermott Jun 24, 2022
545e825
refactor calculators
mattmcdermott Jun 27, 2022
78f9123
re-implement enumerator firetasks / firework
mattmcdermott Jun 27, 2022
befc097
Add tests for InterfaceReactionHull
mattmcdermott Jun 28, 2022
d6cb8ca
clean up tests
mattmcdermott Jun 28, 2022
73beefa
improve speed of selectivity calcs by precomputing
mattmcdermott Jun 30, 2022
4ef1414
speed up of ChempotDistanceCalculator, update imports
mattmcdermott Jun 30, 2022
36e1948
cleanup
mattmcdermott Jun 30, 2022
e2ff630
better logging
mattmcdermott Jun 30, 2022
6a25ac0
fix broken pydantic model
mattmcdermott Jun 30, 2022
33e28f5
fix batches in pathway solver. Test on network ipynb
mattmcdermott Jul 1, 2022
a2e30a6
optimize chunk size, add support for open reaction calcs
mattmcdermott Jul 4, 2022
0c81413
fix interface hull bug, add to_grand_entry, add better support for open
mattmcdermott Jul 6, 2022
a64e63e
fix bug in selectivity firetask
mattmcdermott Jul 6, 2022
8547245
fix bug in BasicOpenEnumerator
mattmcdermott Jul 6, 2022
2fc1bfb
continued fix of bug in BasicOpenEnumerator
mattmcdermott Jul 6, 2022
db582aa
Fix enumerator bug, change primary selectivity function, import sorting
mattmcdermott Jul 7, 2022
9ee318f
add parallelization to reaction decoration
mattmcdermott Jul 8, 2022
c1c7f1e
add duplicate filtering to ReactionSet
mattmcdermott Jul 8, 2022
e0c2ee5
fix bug in duplicate filtering, add test
mattmcdermott Jul 8, 2022
12dcc7a
refactor enumerators and firetask
mattmcdermott Jul 8, 2022
6886a3e
fix tests, add support for filtering out combined reactions
mattmcdermott Jul 13, 2022
691cd91
add max num constraints to enumerator
mattmcdermott Jul 13, 2022
066f900
bug fix for recursive decomposition due to shared x values (add ref!)
mattmcdermott Jul 13, 2022
f7779e3
fix broken test due to caching bug?
mattmcdermott Jul 13, 2022
de556da
change hashing, add better logging
mattmcdermott Jul 14, 2022
3260a9a
group reactions in CalculateSelectivity
mattmcdermott Jul 15, 2022
5458b33
fix bug where reaction iterator was getting consumed
mattmcdermott Jul 15, 2022
3aeca1d
add interpolated entry, import sorting
mattmcdermott Jul 15, 2022
d127bb2
debugging ray memory issue
mattmcdermott Jul 19, 2022
0198996
play with ray settings
mattmcdermott Jul 19, 2022
924f377
fix memory issues (hopefully)
mattmcdermott Jul 20, 2022
aef5f21
fix float error
mattmcdermott Jul 20, 2022
4577379
docstring fix, dataframe cleanup
mattmcdermott Aug 22, 2022
34276b7
fix num_CPU problem, begin edit of RetrosynthesisFW
mattmcdermott Aug 22, 2022
af1e0fe
finish implementation of retrosynthesis workflow
mattmcdermott Aug 23, 2022
18665c6
fix bug in retrosynthesisFW name
mattmcdermott Aug 23, 2022
cba20e1
add support for ray on PBS
mattmcdermott Aug 23, 2022
33ecdae
fix issues raised by @jx-fan, including duplicate intermediate rxns
mattmcdermott Aug 23, 2022
2d34c93
add duplicate filtering for intermediate rxns
mattmcdermott Aug 23, 2022
2772c3a
small refactor, speed up reaction hash
mattmcdermott Aug 25, 2022
faf22a4
add better memory management -- always store reactions in ReactionSet
mattmcdermott Aug 25, 2022
8d0c153
significant ReactionSet improvements for memory/speed
mattmcdermott Aug 26, 2022
f5ec637
better logic for grandpotpdentry objects in CPD
mattmcdermott Aug 26, 2022
956370c
fix broken tests
mattmcdermott Aug 26, 2022
7a7cd38
temp removal of mp_api
mattmcdermott Aug 26, 2022
c85714e
optimize RetrosynthesisFW via implementation of filter_by_chemsys
mattmcdermott Aug 26, 2022
fd78f9c
Add "offset" feature to chempot distance calculation for metastable phas
mattmcdermott Aug 26, 2022
e7c9536
fix bug in ChempotDistanceCalculator for open reactions
mattmcdermott Aug 26, 2022
1ba1e81
Bug fix for reaction set get_rxns_by_reactants
mattmcdermott Aug 30, 2022
d8c70e0
remove unused import
mattmcdermott Aug 30, 2022
ca57d57
basic linting
mattmcdermott Aug 30, 2022
ab995f7
cleaning
mattmcdermott Aug 30, 2022
eb807cd
setup rewrite of fireworks into jobflow jobs
mattmcdermott Sep 1, 2022
a99c860
First implementation of GetEntrySet
mattmcdermott Sep 1, 2022
05c7006
basic implementation of reaction enumeration jobs and flow
mattmcdermott Sep 1, 2022
ac96317
first implementation (demo) of RetrosynthesisFlow
mattmcdermott Sep 1, 2022
28bb386
add better logic for retrosynthesis workflow, fix duplicate reaction bug
mattmcdermott Sep 2, 2022
3767db8
add better name support and fields in schema
mattmcdermott Sep 2, 2022
b299c38
fix mp_api version change
mattmcdermott Sep 6, 2022
936e433
fix secondary selectivity bug for single reactant reactions
mattmcdermott Sep 6, 2022
b053abd
plotting color tweaks
mattmcdermott Sep 6, 2022
b36054d
move models -> schema
mattmcdermott Sep 6, 2022
7537c50
change parallelization of pathway solver to implement ray batching
mattmcdermott Sep 7, 2022
559d5d3
clean up and import linting
mattmcdermott Sep 7, 2022
d1e8de5
refactor react method to simplify
mattmcdermott Sep 8, 2022
29e0331
implement batching to reduce serializing a ton of data all at once
mattmcdermott Sep 9, 2022
2e5bfa4
implement batching for pathway solver
mattmcdermott Sep 9, 2022
1e09860
clean up batching
mattmcdermott Sep 9, 2022
979694f
update batch/chunk sizes
mattmcdermott Sep 9, 2022
d0718f5
improve tqdm
mattmcdermott Sep 9, 2022
9cd00d6
improve rxn_set additions
mattmcdermott Sep 9, 2022
c31a92e
fix nb
mattmcdermott Sep 9, 2022
6770339
change batch size default
mattmcdermott Sep 9, 2022
e9ebe17
fix progress bar for open enum
mattmcdermott Sep 9, 2022
1e132d9
implement new ray approach for jobflow job
mattmcdermott Sep 9, 2022
b146616
typo in type
mattmcdermott Sep 9, 2022
1898ee9
fix broken batch size
mattmcdermott Sep 9, 2022
3302d9c
test changing ray
mattmcdermott Sep 10, 2022
1a4dfdb
fix schema, plotting bug
mattmcdermott Sep 12, 2022
12d25b9
improve dataframe method
mattmcdermott Sep 13, 2022
c601eb7
Improve tests for core calculator functions
mattmcdermott Sep 13, 2022
617cc7a
cleanup files from refactor
mattmcdermott Sep 13, 2022
f9c4378
add implementation of network jobs/flows
mattmcdermott Sep 14, 2022
b62832d
Fix bugs in network job/flow
mattmcdermott Sep 14, 2022
ec24fed
untrack network.gt.gz
mattmcdermott Sep 14, 2022
90284a2
remove fireworks support, better dataframe handling, network flow, bug
mattmcdermott Sep 16, 2022
24702f4
fix bug with targets, add available precursors json
mattmcdermott Sep 18, 2022
2b27d17
update reqs
mattmcdermott Sep 19, 2022
0bdf535
improve chunk/batching
mattmcdermott Sep 19, 2022
1d66563
try adding reaction set as you go
mattmcdermott Sep 19, 2022
5c1501e
fix typo
mattmcdermott Sep 20, 2022
817910a
fix absolutely massive bug in enumeration
mattmcdermott Sep 20, 2022
1ca3f3f
improve construction of reaction sets in enumerator
mattmcdermott Sep 20, 2022
041a707
fix bug with target not being included
mattmcdermott Sep 20, 2022
e128eda
fix open entry bug
mattmcdermott Sep 20, 2022
1a49018
fix pareto plot bug
mattmcdermott Sep 21, 2022
3b23ec6
add pbar option to expand_pd()
janosh Sep 22, 2022
aee3e29
some bug fixes, optimization of selectivity
mattmcdermott Sep 24, 2022
afe876a
speed up reaction set construction
mattmcdermott Sep 29, 2022
7b5e15f
add more logging
mattmcdermott Sep 29, 2022
d1aa36c
rough parallelization of chempot distance calc
mattmcdermott Sep 30, 2022
36a8c81
fix typo
mattmcdermott Sep 30, 2022
e38f87c
test
mattmcdermott Oct 3, 2022
83867df
add better logging messages
mattmcdermott Oct 3, 2022
a770585
better logger
mattmcdermott Oct 3, 2022
05a3073
change function order
mattmcdermott Oct 3, 2022
3a4cfbd
faster duplicate checking in reaction sets
mattmcdermott Oct 3, 2022
b8f2bd3
clean up logger
mattmcdermott Oct 3, 2022
67759f1
update reqs
mattmcdermott Oct 3, 2022
5f782c2
add duplicate checking on enumerators
mattmcdermott Oct 3, 2022
c683b79
change default batch
mattmcdermott Oct 3, 2022
3c97d77
create pyproject.toml
mattmcdermott Oct 4, 2022
6a0dc81
add git version to pyproject.toml
mattmcdermott Oct 4, 2022
122d864
linting
mattmcdermott Oct 4, 2022
65e7f48
faster reaction loading in job
mattmcdermott Oct 4, 2022
6e21c04
bug fix in rxn_set loading, typo fix
mattmcdermott Oct 4, 2022
28c8173
configure prospector, add more tests for entries
mattmcdermott Oct 6, 2022
fa5611c
expand test suite
mattmcdermott Oct 6, 2022
02d0398
fix conflicts
mattmcdermott Oct 6, 2022
c0d909a
improve job tests
mattmcdermott Oct 10, 2022
dd5188f
Improve job tests, small refactor of pathway solving
mattmcdermott Oct 11, 2022
59276a3
ignore some files
mattmcdermott Oct 11, 2022
4a83823
fix some tests
mattmcdermott Oct 11, 2022
77c2047
add jobflow tests
mattmcdermott Oct 11, 2022
5226ac8
add more tests, visualize, basic flow fixes
mattmcdermott Oct 12, 2022
b3ddaec
improve GitHub actions
mattmcdermott Oct 13, 2022
69d2f20
update github action typo
mattmcdermott Oct 13, 2022
aaa98ea
test update to pyproject toml and github workflow
mattmcdermott Oct 13, 2022
4257f46
add gitattributes file
mattmcdermott Oct 13, 2022
75c9455
test new github workflow scheme
mattmcdermott Oct 13, 2022
18fb48f
format with black
mattmcdermott Oct 13, 2022
e4112cd
update reqs for docs
mattmcdermott Oct 13, 2022
265cc04
update docs with refactor of code
mattmcdermott Oct 14, 2022
d9ba723
add MP API key secret
mattmcdermott Oct 14, 2022
b71e898
update README badges and add support for gtk during tests
mattmcdermott Oct 14, 2022
cb561fe
fix linting
mattmcdermott Oct 14, 2022
3100ec0
fix typo in plotly express
mattmcdermott Oct 14, 2022
e7bb2a6
run black
mattmcdermott Oct 14, 2022
93d57c5
fix linting bugs
mattmcdermott Oct 14, 2022
35c81be
add simple builder schema tests
mattmcdermott Oct 14, 2022
be9d3d1
fix strange problem in applying carbonate corrections
mattmcdermott Oct 14, 2022
ab61191
deleting whitespace
mattmcdermott Oct 14, 2022
e368f52
add type for metastable domains
mattmcdermott Oct 14, 2022
279f2c6
improve chunking / batch sizes
mattmcdermott Oct 15, 2022
e76b21e
run black
mattmcdermott Oct 15, 2022
1c42390
add further secondary selectivity calcs
mattmcdermott Oct 17, 2022
878fe73
change logging to debug
mattmcdermott Oct 17, 2022
8a67c8a
clean up conftest
mattmcdermott Oct 17, 2022
edf7734
add back in tqdm disable
mattmcdermott Oct 18, 2022
96f45a5
fix bug in interpolated entry init
mattmcdermott Oct 18, 2022
4405297
fix bug in test
mattmcdermott Oct 18, 2022
9e8f2b6
better error handling for cpd
mattmcdermott Oct 18, 2022
9493811
improve __eq__ methods
mattmcdermott Oct 18, 2022
2e954f9
add hash for interpolated entry
mattmcdermott Oct 18, 2022
46b6ccc
adjust interpolated entry repr
mattmcdermott Oct 18, 2022
5502c54
change default interpolated entry tolerance
mattmcdermott Oct 18, 2022
4a319f9
switch to tol per atom
mattmcdermott Oct 18, 2022
07f45ea
change name of GibbsEntrySet.from_computed_entries
mattmcdermott Oct 19, 2022
fa10bf4
run black
mattmcdermott Oct 19, 2022
8648b0f
fix broken tests
mattmcdermott Oct 19, 2022
aa1a235
move files
mattmcdermott Oct 20, 2022
906745f
update enumerators NB
mattmcdermott Oct 20, 2022
3782ec1
update network NB, fix bug in pathway solver
mattmcdermott Oct 20, 2022
3f0ae1b
linting, fix broken test
mattmcdermott Oct 21, 2022
842572b
make sure formulas are included in network flow
mattmcdermott Oct 21, 2022
36877e5
add support for network store
mattmcdermott Oct 21, 2022
2e12308
fix broken pathway solver test
mattmcdermott Oct 24, 2022
5f404a2
cleanup pt 1
mattmcdermott Oct 24, 2022
0e3bf31
cleanup for release pt2
mattmcdermott Oct 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .coveragerc

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
notebooks/** linguist-vendored
4 changes: 2 additions & 2 deletions .github/workflows/post-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- completed
workflows:
# List all required workflow names here.
- 'testing'
- "testing"

jobs:
merge-me:
Expand All @@ -20,7 +20,7 @@ jobs:
uses: ridedott/merge-me-action@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

auto-gen-release:
runs-on: ubuntu-latest
env:
Expand Down
116 changes: 61 additions & 55 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,75 +9,81 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v2.4.0

- uses: actions/setup-python@v1
with:
python-version: 3.9
- uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools_scm wheel
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools_scm wheel

- name: Build packages
run: |
python setup.py sdist
- name: Build packages
run: |
python setup.py sdist

- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPY_API_TOKEN }}
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPY_API_TOKEN }}

docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
needs:
- deploy
- deploy
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3

- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
python-version: 3.9
activate-environment: foo
- run: |
python -m pip install --upgrade pip
conda install -c conda-forge graph-tool
pip install -r requirements.txt
pip install -r requirements-optional.txt
pip install -r requirements-docs.txt
pip install -e .
- name: Cache conda
uses: actions/cache@v2
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('environment.yaml') }}
- uses: conda-incubator/setup-miniconda@v2.1.1
with:
activate-environment: graph-tool
environment-file: environment.yaml
use-only-tar-bz2: true

- name: Generate changelog
uses: charmixer/auto-changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_labels: dependencies
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[strict]

- name: Commit files
run: |
git config --local user.email "mcdermott@lbl.gov"
git config --local user.name "GENESIS-EFRC"
git stash
git pull origin main
mv CHANGELOG.md docs/
git add docs/CHANGELOG.md && git commit -m 'Updated CHANGELOG.md'

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate changelog
uses: charmixer/auto-changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_labels: dependencies

- name: Build
run: mkdocs build
- name: Commit files
run: |
git config --local user.email "mcdermott@lbl.gov"
git config --local user.name "GENESIS-EFRC"
git stash
git pull origin main
mv CHANGELOG.md docs/
git add docs/CHANGELOG.md && git commit -m 'Updated CHANGELOG.md'

- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: mkdocs build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
167 changes: 85 additions & 82 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: testing

on:
push:
branches:
- main

pull_request:
branches:
Expand All @@ -16,100 +14,105 @@ jobs:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2.4.0
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
python-version: 3.9
activate-environment: foo

- name: Install dependencies
run: |
python -m pip install --upgrade pip
conda install -c conda-forge graph-tool
pip install -r requirements.txt
pip install -r requirements-testing.txt
pip install -r requirements-optional.txt
pip install -e .

- name: Lint with mypy
run: |
mypy src/rxn_network

- name: Lint with pycodestyle
run: |
pycodestyle src/rxn_network

- name: Lint with pylint
run: |
pylint src/rxn_network

- name: Lint with black
run: |
black --check --diff --color src/rxn_network

- name: Lint with flake8
run: |
flake8 --count --show-source --statistics src/rxn_network
flake8 --count --exit-zero --max-complexity=20 --statistics src/rxn_network
- uses: actions/checkout@v3

- name: Cache conda
uses: actions/cache@v2
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('environment.yaml') }}
- uses: conda-incubator/setup-miniconda@v2.1.1
with:
activate-environment: graph-tool
environment-file: environment.yaml
use-only-tar-bz2: true

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[strict]
pip install black prospector[with_mypy]

- name: Lint with black
run: |
black --check --diff --color src/rxn_network

- name: Lint with prospector
run: |
prospector src/rxn_network

test:
strategy:
max-parallel: 6
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9]
python-version: ["3.8", "3.9", "3.10"]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2.4.0
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
activate-environment: foo

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
conda install -c conda-forge graph-tool
pip install -r requirements.txt
pip install -r requirements-optional.txt
pip install -r requirements-testing.txt
pip install -e .

- name: Test with pytest
run: |
pytest --cov=src/rxn_network --cov-report=xml

- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml

- uses: actions/checkout@v3

- name: Cache conda
uses: actions/cache@v2
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('environment.yaml') }}
- uses: conda-incubator/setup-miniconda@v2.1.1
with:
activate-environment: graph-tool
environment-file: environment.yaml
use-only-tar-bz2: true

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[strict,tests]

- name: Test with pytest
env:
MP_API_KEY: ${{ secrets.MP_API_KEY }}
run: |
pytest --cov=src/rxn_network --cov-report=xml

- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml

docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2.4.0
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
python-version: 3.9
activate-environment: foo

- name: Install dependencies
run: |
python -m pip install --upgrade pip
conda install -c conda-forge graph-tool
pip install -r requirements.txt
pip install -r requirements-optional.txt
pip install -r requirements-docs.txt
pip install -e .

- name: Build docs
run: mkdocs build
- uses: actions/checkout@v3

- name: Cache conda
uses: actions/cache@v2
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('environment.yaml') }}
- uses: conda-incubator/setup-miniconda@v2.1.1
with:
activate-environment: graph-tool
environment-file: environment.yaml
use-only-tar-bz2: true

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[strict,docs]

- name: Build docs
run: mkdocs build
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,9 @@ notebooks/rxns.json.gz
notebooks/network-Copy1.ipynb

notebooks/entries.json.gz

notebooks/network.gt.gz

network.gt.gz

examples/Bi-Fe-O-K-F.png
Loading