-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
317 changed files
with
35,876 additions
and
42,002 deletions.
There are no files selected for viewing
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,17 @@ | ||
parms | ||
hist | ||
tHeI | ||
thei | ||
Hist | ||
vie | ||
mye | ||
NWO | ||
nd | ||
lamda | ||
bject | ||
accreting | ||
accrete | ||
accreted | ||
YHe | ||
yhe | ||
|
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 |
---|---|---|
@@ -1,16 +1,75 @@ | ||
name: COMPAS compile test | ||
|
||
on: [pull_request] | ||
on: | ||
workflow_dispatch: # allow manual triggering of this workflow | ||
pull_request: # run workflow when PRs made to dev (if following files changed) | ||
branches: | ||
- dev | ||
paths: ['src/**', "compas_python_utils/**", "py_tests/**", ".github/workflows/**"] | ||
push: # always run workflow on push to the following branch | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
compas: | ||
name: Build COMPAS | ||
runs-on: ubuntu-18.04 | ||
runs-on: ${{ matrix.os}} | ||
container: ${{matrix.container}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
cache: 'pip' # caching pip dependencies | ||
|
||
- name: Install dependencies | ||
run: sudo apt install g++ libboost-all-dev libgsl-dev libhdf5-serial-dev | ||
- name: Install dependencies on ubuntu | ||
if: startsWith(matrix.os, 'ubuntu-20') | ||
run: | | ||
cd misc/cicd-scripts | ||
chmod 755 linux-dependencies | ||
./linux-dependencies | ||
- name: Build Compas | ||
run: cd src && make -j $(nproc) -f Makefile | ||
run: | | ||
cd src && make -j $(nproc) -f Makefile | ||
./COMPAS -v | ||
- name: Run example COMPAS job | ||
run: | | ||
pip install --upgrade pip | ||
pip install -e .[dev] | ||
export COMPAS_ROOT_DIR=${GITHUB_WORKSPACE} | ||
cd ${GITHUB_WORKSPACE}/misc/examples/methods_paper_plots/detailed_evolution | ||
chmod 755 run.sh | ||
cat run.sh | ||
./run.sh | ||
- name: Run pytests | ||
# Run tests and collect coverage data | ||
run: | | ||
cd ${GITHUB_WORKSPACE} | ||
export COMPAS_ROOT_DIR=${GITHUB_WORKSPACE} | ||
jupyter-kernelspec list | ||
pytest --cov=compas_python_utils/ py_tests/ -m 'not webtest' | ||
pytest --cov=compas_python_utils/ --cov-append py_tests/ -m webtest | ||
coverage html | ||
coverage-badge -o coverage_badge.svg -f | ||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: code-coverage | ||
path: | | ||
htmlcov/ | ||
coverage_badge.svg | ||
- name: Archive COMPAS run data | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: COMPAS-run-artifacts | ||
path: | | ||
py_tests/test_artifacts |
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
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,14 @@ | ||
name: precommit checks | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- uses: pre-commit/action@v3.0.0 |
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,8 @@ | ||
default_language_version: | ||
python: python3 | ||
repos: | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.4 | ||
hooks: | ||
- id: codespell # Spellchecker | ||
args: [--ignore-words=.dictionary.txt, --skip, '*.eps,*.svg,*.ipynb,./misc/*,paper.md,./online-docs/index.rst'] |
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,29 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
# Build documentation in the online-docs/ directory with Sphinx | ||
sphinx: | ||
builder: html | ||
configuration: online-docs/conf.py | ||
|
||
# Build only html documentation (specificall, don't build PDF!) | ||
formats: [] | ||
|
||
# Set the version of Python and other tools you might need | ||
python: | ||
install: | ||
- requirements: requirements.txt | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
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
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,11 @@ | ||
|
||
__all__ = [] | ||
|
||
__author__ = "Team COMPAS" | ||
__email__ = "compas email" | ||
__uri__ = "https://github.com/TeamCOMPAS/COMPAS" | ||
__license__ = "MIT" | ||
__description__ = "COMPAS" | ||
__copyright__ = "Copyright 2022 COMPAS developers" | ||
__contributors__ = "https://github.com/TeamCOMPAS/COMPAS/graphs/contributors" | ||
__version__ = "0.0.1" |
Oops, something went wrong.