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

Can we fix badges? #53

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 10 additions & 7 deletions .github/workflows/gh-ci-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: GH Actions Cron CI
on:
pull_request:
branches:
- main
push:
branches:
- main
Expand Down Expand Up @@ -170,20 +173,20 @@ jobs:
- id: get-base-python-deps
name: get-base-python-deps
run: |
pip install requests setuptools packaging pyyaml pydantic PyGithub
pip install MDAnalysis requests setuptools packaging pyyaml pydantic PyGithub

- id: combine-write-raise-issues
name: combine-write-raise-issues
run: |
python utils/handle-status.py
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: commit changes to status files
skip_dirty_check: false
skip_fetch: false
#
# - uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: commit changes to status files
# skip_dirty_check: false
# skip_fetch: false

deploy_docs:
if: ${{ always() }}
Expand Down
1 change: 1 addition & 0 deletions mdakits/mdachecker/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ run_tests:
- pytest --pyargs mdachecker.tests
test_dependencies:
- pip install pytest
import_name: mdachecker
codecov:
development_status: Beta
changelog:
Expand Down
1 change: 1 addition & 0 deletions mdakits/prolif/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ development_status: Production/Stable
publications:
- https://doi.org/10.1186/s13321-021-00548-6
- https://zenodo.org/record/7332369
import_name: prolif
1 change: 1 addition & 0 deletions mdakits/propkatraj/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ publications:
- https://zenodo.org/record/7647010
- https://doi.org/10.1021/ct200133y
- https://doi.org/10.1085/jgp.201411219
import_name: propkatraj
4 changes: 2 additions & 2 deletions utils/handle-status.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ def handle_mdakit(maindir: str, statusdir: str,
mdakit.gen_badges()

# raise issues
mdakit.raise_issues()
# mdakit.raise_issues()

# write out the status
mdakit.status.write_status(mdakit.path)
# mdakit.status.write_status(mdakit.path)


if __name__ == "__main__":
Expand Down
10 changes: 5 additions & 5 deletions utils/mdakit.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ def _read_status(self, path):
self.status = Status(path / "status.yaml")

def gen_badges(self):
try:
badges = self._get_class_badges(self.metadata.import_name)
except:
badges = BadgesStatusDict()
#try:
badges = self._get_class_badges(self.metadata.import_name)
#except:
# badges = BadgesStatusDict()

try:
badges.coverage = self._get_codecov_status(
Expand All @@ -195,7 +195,7 @@ def _get_class_badges(name: Optional[str]):
# Get all the necessary MDAnalysis classes
from MDAnalysis.analysis.base import AnalysisBase
from MDAnalysis.coordinates.base import ProtoReader, WriterBase, ConverterBase
from MDAnalysis.topology.base import TopologyBase
from MDAnalysis.topology.base import TopologyReaderBase
from MDAnalysis.transformations.base import TransformationBase

def get_modules(mod):
Expand Down