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

Develop #275

Closed
wants to merge 241 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
e66a83c
updated read me
nh916 Mar 1, 2023
a032ccf
Create .gitignore
nh916 Mar 1, 2023
b201325
added issue templates
nh916 Mar 1, 2023
7d92bb5
Update README.md
nh916 Mar 1, 2023
f13a532
removed MANIFEST from the .gitignore list
nh916 Mar 1, 2023
5deed56
Update .gitignore
nh916 Mar 1, 2023
cac696a
Merge pull request #3 from C-Accel-CRIPT/create_gitignore
nh916 Mar 1, 2023
88ffc07
removed smartphone section
nh916 Mar 1, 2023
9c95d1a
Merge pull request #2 from C-Accel-CRIPT/update_readme
nh916 Mar 1, 2023
7388b90
Merge pull request #4 from C-Accel-CRIPT/added_issue_templates
nh916 Mar 1, 2023
4e3f1ac
Update .gitignore
nh916 Mar 2, 2023
5849375
created setup.py and setup.cfg
nh916 Mar 8, 2023
0c884f2
Create pyproject.toml
nh916 Mar 8, 2023
06693fb
setup documentation mkdocs.yaml file
nh916 Mar 8, 2023
18b6ce6
Create requirements_docs.txt
nh916 Mar 8, 2023
083f71e
Create extra.css
nh916 Mar 8, 2023
32af5a5
Create index.md
nh916 Mar 8, 2023
aa01ab9
added .pytest_cache to .gitignore file
nh916 Mar 8, 2023
b3271cf
Create pull_request_template.md
nh916 Mar 8, 2023
d688773
Merge pull request #11 from C-Accel-CRIPT/pr_template
nh916 Mar 8, 2023
e9c38cc
Merge pull request #10 from C-Accel-CRIPT/setup_docs
nh916 Mar 8, 2023
07073cc
Merge pull request #9 from C-Accel-CRIPT/update_gitignore
nh916 Mar 8, 2023
d996110
Merge pull request #8 from C-Accel-CRIPT/created_setup
nh916 Mar 8, 2023
cbf3123
moved pyproject.toml from src/ to the project root directory
nh916 Mar 8, 2023
89af074
Merge pull request #12 from C-Accel-CRIPT/fix_pyproject.toml
nh916 Mar 9, 2023
5fc3e82
made nodes/ a package
nh916 Mar 9, 2023
de5f104
added supporting nodes
nh916 Mar 9, 2023
586d173
added primary_node.py
nh916 Mar 9, 2023
81b282e
added the class for all primary nodes
nh916 Mar 9, 2023
e2abe9a
renamed primary_node.py to primary_base_node.py to make it clearer an…
nh916 Mar 9, 2023
df51470
added a shell of all subobjects
nh916 Mar 9, 2023
a7c1d26
reformatted Primary and Supporting Nodes
nh916 Mar 9, 2023
34a2deb
Merge pull request #14 from C-Accel-CRIPT/setup_all_nodes
nh916 Mar 9, 2023
c2b83fe
updated PR template
nh916 Mar 11, 2023
8df5993
Make Cript installable via `pip` (#16)
InnocentBug Mar 13, 2023
c5a10b1
add missing nodes
InnocentBug Mar 10, 2023
2b1e429
fixing init files
InnocentBug Mar 10, 2023
39fa1d3
simplify test
InnocentBug Mar 10, 2023
fe23928
created primary_node.py
nh916 Mar 8, 2023
1d92468
added str method to primary_node.py
nh916 Mar 8, 2023
665ffae
added str method to primary_node.py
nh916 Mar 8, 2023
7aa129b
working on the abstract primary_node.py
nh916 Mar 9, 2023
01d4055
added all fields and default values to primary_base_node.py
nh916 Mar 10, 2023
bae9d14
updated primary_base_node.py
nh916 Mar 10, 2023
8c473d9
updated __str__ method
nh916 Mar 10, 2023
9f5cad1
updated __str__ method
nh916 Mar 10, 2023
cd7d557
making URL and UID into string types only
nh916 Mar 10, 2023
72b86e2
updated docstring for base __str__ method
nh916 Mar 10, 2023
c0687d1
address requested changes
InnocentBug Mar 10, 2023
44b010d
add getter properties
InnocentBug Mar 10, 2023
00f8b83
first draft
InnocentBug Mar 10, 2023
03c3139
parameter works
InnocentBug Mar 11, 2023
f18b3c9
add missing file
InnocentBug Mar 11, 2023
2c745e2
remove typo
InnocentBug Mar 13, 2023
0a454f6
remove empty nodes
InnocentBug Mar 13, 2023
45f74cd
add nice doc strings
InnocentBug Mar 13, 2023
20a7865
add test to CI
InnocentBug Mar 13, 2023
857ea7a
bring primary node up to date
InnocentBug Mar 13, 2023
282025d
blackify
InnocentBug Mar 13, 2023
04349ed
blackify
InnocentBug Mar 13, 2023
f98aa6d
fix
InnocentBug Mar 13, 2023
55317bd
Merge pull request #19 from C-Accel-CRIPT/update_pr_template
Ardi028 Mar 13, 2023
8e2c27d
add mock validation function
InnocentBug Mar 13, 2023
fb5140d
repsond to Navid's comments
InnocentBug Mar 14, 2023
a3638a3
removing old doc strings
InnocentBug Mar 14, 2023
095759b
Merge branch 'create_primary_node' into json
InnocentBug Mar 14, 2023
b189cdc
explain None value for parameter unit
InnocentBug Mar 14, 2023
5e311a2
Merge branch 'create_primary_node' into json
InnocentBug Mar 14, 2023
e3fa235
Merge pull request #17 from C-Accel-CRIPT/json
brili Mar 14, 2023
394e774
Merge pull request #15 from C-Accel-CRIPT/create_primary_node
brili Mar 14, 2023
7e57d74
ensure correct setters
InnocentBug Mar 14, 2023
0742da1
Merge branch 'develop' into safe-checking
InnocentBug Mar 14, 2023
3332687
remove unnecessary json serialization
InnocentBug Mar 14, 2023
685dd41
safe money on tests
InnocentBug Mar 14, 2023
7b4acad
json deserialization works
InnocentBug Mar 14, 2023
0d5b8fa
add user friendly access to load nodes
InnocentBug Mar 14, 2023
9f5e7ba
finishing touches on json serialization
InnocentBug Mar 14, 2023
7bdf9d1
Merge pull request #21 from C-Accel-CRIPT/fromJSON
nh916 Mar 15, 2023
fdba340
Add license and contributor tracking
InnocentBug Mar 20, 2023
aec28c1
reenable all tests
InnocentBug Mar 20, 2023
22b5967
updated README.md with disclaimer that the SDK is still under develop…
nh916 Mar 20, 2023
dc7eedc
Create LICENSE.md
Ardi028 Mar 20, 2023
b9a0089
Merge pull request #31 from C-Accel-CRIPT/add-license-1
brili Mar 20, 2023
160757c
Merge branch 'develop' into go-public
InnocentBug Mar 20, 2023
bf265f2
updated readme
nh916 Mar 20, 2023
a5f9db0
Create SECURITY.md
nh916 Mar 20, 2023
541a042
Merge branch 'go-public' into update_readme
InnocentBug Mar 20, 2023
998b7a3
Merge pull request #32 from C-Accel-CRIPT/update_readme
nh916 Mar 20, 2023
620de06
remove duplicate license
InnocentBug Mar 21, 2023
f7737d6
specify right license file
InnocentBug Mar 21, 2023
ff536b4
Merge pull request #30 from C-Accel-CRIPT/go-public
nh916 Mar 21, 2023
1eabd10
trunk for software quality (#34)
InnocentBug Mar 21, 2023
140b52a
fixed typo for `Dependencies: JSONSchema`
nh916 Mar 21, 2023
9fef9a0
fixed typo for `Dependencies: Requests` and `Dependencies: PyTests` a…
nh916 Mar 21, 2023
d6c8a8b
Merge pull request #36 from C-Accel-CRIPT/update_readme
nh916 Mar 21, 2023
6c2e9bb
Merge pull request #33 from C-Accel-CRIPT/nh916-patch-1
nh916 Mar 21, 2023
26d8e7b
Add Quantity implementation
InnocentBug Mar 21, 2023
3d6d059
add tests for quantity
InnocentBug Mar 21, 2023
70fd9f0
Create codeql.yml
nh916 Mar 21, 2023
3e61cca
Implement Software Subobject (#28)
InnocentBug Mar 22, 2023
4118c32
Merge branch 'develop' into quantity
InnocentBug Mar 22, 2023
1eb92ab
autoformat
InnocentBug Mar 22, 2023
2650b7d
Impelement removing children from a node (#23)
InnocentBug Mar 23, 2023
3f32fe9
Merge branch 'develop' into quantity
InnocentBug Mar 23, 2023
3b501d1
autoformat
InnocentBug Mar 23, 2023
0693feb
Merge pull request #38 from C-Accel-CRIPT/quantity
brili Mar 23, 2023
0173770
Implement a local search for nodes (#24)
InnocentBug Mar 23, 2023
4b104d1
Create api (#18)
nh916 Mar 25, 2023
8d2cd5a
Implementation of all remaining subobjects (#41)
InnocentBug Mar 27, 2023
6cae125
updated README.md python version
nh916 Mar 28, 2023
3f3c651
Merge pull request #47 from C-Accel-CRIPT/update_readme
Ardi028 Mar 29, 2023
f3550fd
make a common base exception for CRIPT (#43)
InnocentBug Mar 29, 2023
f6d013f
Finished Supporting Nodes (#44)
nh916 Mar 30, 2023
087713a
Updated pull request template
nh916 Apr 5, 2023
17a87cb
Redesign of the API (#49)
InnocentBug Apr 8, 2023
5259bb3
Implement a cycle prevention (#42)
InnocentBug Apr 8, 2023
81346b9
trunk formatted codeql.yml
nh916 Apr 10, 2023
2d9f65d
fix trunk check
InnocentBug Apr 10, 2023
e23aa4d
Merge pull request #55 from C-Accel-CRIPT/update_pull_request_template
Ardi028 Apr 11, 2023
7f8f97d
Merge pull request #39 from C-Accel-CRIPT/add-github-workflow-codeql
Ardi028 Apr 11, 2023
eff0482
Finished primary nodes (#52)
nh916 Apr 15, 2023
57cf696
Python SDK Documentation Setup (#57)
nh916 Apr 18, 2023
6159b68
JSON node: [node type] (#71)
InnocentBug Apr 20, 2023
d69b10a
created docs CI/CD (#69)
nh916 Apr 21, 2023
51f3d3f
updated .gitignore to ignore coverage.py (#68)
nh916 Apr 21, 2023
28b6c51
created simple issue template (#64)
nh916 Apr 24, 2023
fcbe81b
Introduce UID management to nodes and JSON (#72)
InnocentBug Apr 27, 2023
a1e463a
Create CI/CD of dependency security scanner (#60)
nh916 Apr 27, 2023
c59abe6
renaming GitHub workflow to tests.yml (#79)
nh916 May 1, 2023
9f103af
Wip api (#59)
nh916 May 1, 2023
8f13bb2
Check for orphraned nodes (#82)
InnocentBug May 2, 2023
bd30853
added more documentation to our FAQ section (#86)
nh916 May 2, 2023
66d7aaf
Fix API Exceptions and Write Documentation (#85)
nh916 May 3, 2023
ece2c7b
updating db schema test because db schema updated (#90)
nh916 May 3, 2023
31303a0
updated tests and trunk workflow (#103)
nh916 May 19, 2023
42cd177
updated packages (#100)
nh916 May 23, 2023
6eaa692
Update README.md (#112)
nh916 May 25, 2023
baeb644
Created CONTRIBUTING.md (#116)
nh916 May 30, 2023
1ca3c7c
created docs_ci_check
nh916 May 31, 2023
c634f09
Merge pull request #130 from C-Accel-CRIPT/create_docs_ci_check
nh916 May 31, 2023
4ae7855
Update requirements_dev.txt
nh916 Jun 1, 2023
123c52c
Merge pull request #133 from C-Accel-CRIPT/add_pytest_to_requirements…
nh916 Jun 2, 2023
6640e68
PR template updated (#99)
nh916 Jun 7, 2023
33a5797
Created Test coverage CI (#140)
nh916 Jun 7, 2023
74d5962
Validate nodes (#78)
InnocentBug Jun 7, 2023
faad051
setup merge-q actions (#145)
InnocentBug Jun 8, 2023
91b0277
remove depency test (#1) (#149)
InnocentBug Jun 8, 2023
233d154
add member and admin to collection (#146)
InnocentBug Jun 8, 2023
775eebe
UUID base all (#150)
InnocentBug Jun 8, 2023
1b595a5
Create CODE_OF_CONDUCT.md (#124)
nh916 Jun 9, 2023
55d8e9b
add process back into material (#148)
InnocentBug Jun 9, 2023
be9f62c
removing downloading of db schema (#157)
nh916 Jun 9, 2023
9c84c24
file node inheriting from PrimaryBaseNode.py (#158)
nh916 Jun 10, 2023
15f7903
Create `mypy CI` & `Fix mypy typing` errors & add `@beartype` (#151)
nh916 Jun 12, 2023
2b0a1b8
Feature: `API.upload_file()` & `API.download_file()` (#156)
nh916 Jun 13, 2023
448ee7f
optimize GitHub CI (#164)
nh916 Jun 13, 2023
4e60f21
Feature: automatic uploads for File nodes with local file source and …
nh916 Jun 14, 2023
ab0fba6
Update api.py (#166)
nh916 Jun 14, 2023
e507b78
Update simple-issue.md template (#159)
nh916 Jun 14, 2023
e16c4f0
removed `crash_course.md` file because we have quick start example in…
nh916 Jun 14, 2023
8f29d25
swapping the order for navigation with exception and utility functions
nh916 Jun 14, 2023
15ebc47
wrote cript_installation_guide.md
nh916 Jun 14, 2023
d01f069
changed navigation `API` section to `API Client`
nh916 Jun 14, 2023
04bec62
created `how_to_get_api_token.md`
nh916 Jun 14, 2023
47beefa
added image border class styles to use within my documentation
nh916 Jun 14, 2023
6b7bf1d
updated how_to_get_api_token.md
nh916 Jun 14, 2023
437f0db
updated .cspell.json
nh916 Jun 14, 2023
ff7dc79
fix styles
InnocentBug Jun 14, 2023
ba15be2
update synthesis example from old SDK (#163)
InnocentBug Jun 15, 2023
a0961ea
fixed markdown formatting (#171)
nh916 Jun 15, 2023
2917171
Add type hints to `cript.API.upload_file()` (#173)
nh916 Jun 15, 2023
3bdbf2e
Remove identifier and keyword validation functions from material.py (…
nh916 Jun 15, 2023
835f99e
postpone file update until project save (#175)
InnocentBug Jun 28, 2023
0148fde
Update Documentation FAQ.md (#188)
nh916 Jul 8, 2023
30e3418
add simulation example notebook (#174)
InnocentBug Jul 10, 2023
95d7c14
adding warning for integration tests for API
nh916 Jul 10, 2023
463eda1
Merge pull request #194 from C-Accel-CRIPT/api_test_warnings
nh916 Jul 10, 2023
8b0aa38
added JSON representation to all nodes in documentation (#192)
nh916 Jul 11, 2023
e6de8f0
All Nodes Create Integration Tests, and changes to make it work (#168)
nh916 Jul 11, 2023
898387b
Updated README.md and added CI badges (#141)
nh916 Jul 13, 2023
ff62ccd
removed unneeded tests from test_api.py (#198)
nh916 Jul 13, 2023
dc6f4a1
updated _is_local_file to handle `URL`, `AWS S3 object_name`, `absolu…
nh916 Jul 14, 2023
05053ec
Feature: Download `file.source` that is URL (#196)
nh916 Jul 14, 2023
09414f6
upgrade documentation (converted HTML links to MD) (#203)
nh916 Jul 17, 2023
a195c7f
fixed documentation screenshot of API token (#204)
nh916 Jul 18, 2023
20de1bf
Feature: getting token from frontend. `API Client class` has `API Tok…
nh916 Jul 19, 2023
3ca3b6b
renamed the parameter for file download
nh916 Jul 20, 2023
020cd71
refactored `cript.File.download()` to get the file name from the node…
nh916 Jul 20, 2023
46e02ce
Merge pull request #212 from C-Accel-CRIPT/refactor_api_download_file
nh916 Jul 20, 2023
5c435a9
updated documentation for `cript.API.download_file()` (#205)
nh916 Jul 20, 2023
a67c793
Handle patch error messages with SDK (#193)
InnocentBug Jul 20, 2023
25dc785
upgraded repository CONTRIBUTING.md (#201)
nh916 Jul 20, 2023
2fffbd9
Merge pull request #213 from C-Accel-CRIPT/file_download_with_file_name
nh916 Jul 20, 2023
f0d7733
added `pytest` to `requirements_dev.txt` & updated outdated packages …
nh916 Jul 21, 2023
3857f71
added type hints to the search modes enum (#216)
nh916 Jul 21, 2023
f2f9f70
clean up tests.yml GitHub CI (#218)
nh916 Jul 21, 2023
0a47453
Upgrade: Importing Fixtures with wildcard `*` into conftest.py (#219)
nh916 Jul 21, 2023
833a976
updated documentation for API and Storage tokens (#215)
nh916 Jul 21, 2023
4f5f5a8
Knocking out very small `TODO` comments (#220)
nh916 Jul 24, 2023
cd268c8
wrote test function for `_is_node_field_valid` (#224)
nh916 Jul 26, 2023
a3c7075
Fix documentation broken links (#225)
nh916 Jul 26, 2023
730a661
UX: Node Validation Terminal Log Output (#221)
nh916 Jul 26, 2023
71b146a
trunk update (#227)
InnocentBug Jul 26, 2023
8e09325
code clean up: `cript.API._is_node_schema_valid` getting `node_type` …
nh916 Jul 26, 2023
178e8d2
Docs token security tutorial & warnings (#228)
nh916 Jul 26, 2023
1003bb2
removed extra duplicate step from `docs_check.yaml` (#229)
nh916 Jul 26, 2023
154c380
fixed broken link in property node page(#230)
nh916 Jul 26, 2023
68f9d65
wrote docs for paginator & how to install SDK from GitHub (#233)
nh916 Jul 27, 2023
c5c9ef0
removing print statement from `cript.API.search()` (#231)
nh916 Jul 27, 2023
a88d11a
fix quantity type (#234)
InnocentBug Jul 27, 2023
51e8586
Updated/Upgraded documentation (#235)
nh916 Jul 28, 2023
3c0da59
fix the deep diff comparison. (#236)
InnocentBug Jul 28, 2023
573b072
Tests integration with `ON/OFF` switch (#237)
nh916 Jul 31, 2023
4f3e567
added vocabulary links to all nodes in documentation (#238)
nh916 Jul 31, 2023
18afa95
renamed integration_test_helper file (#240)
nh916 Jul 31, 2023
fb02bcc
upgrade `cript.API.download_file()` docs (#241)
nh916 Jul 31, 2023
d01eda4
change test coverage requirement from 90% to 89% (#242)
nh916 Aug 1, 2023
c281a59
refactor enum class name from `ControlledVocabularyCategories` to `Vo…
nh916 Aug 1, 2023
faf96fe
Integration Test Switch, gets value from env var (#239)
nh916 Aug 1, 2023
79ce17c
updating requirements and putting `jupytext` into `requirements_docs.…
nh916 Aug 2, 2023
c2a3c75
Update simulation.py documentation code example (#244)
nh916 Aug 2, 2023
741ea81
changed conftest.py to get storage token from env variable (#252)
nh916 Aug 2, 2023
585c344
handle empyt UUID correctly in JSON, by assigning new UUID (#250)
InnocentBug Aug 2, 2023
f3a80a9
Wrote documentation for `load_nodes_from_json` (#247)
nh916 Aug 3, 2023
4eecea7
added documentation for `_NodeDecoderHook` (#248)
nh916 Aug 3, 2023
3643559
add trailing slashes to work with staging (#254)
InnocentBug Aug 4, 2023
7a3e5c0
wrote `cript.API.__str__` method (#257)
nh916 Aug 4, 2023
aa1889b
simplified tests (#260)
nh916 Aug 8, 2023
1df6083
updated glitchy API documentation side navigation (#258)
nh916 Aug 8, 2023
19b4108
updated api search tests for staging and develop (#263)
nh916 Aug 9, 2023
e41bb79
Wrote documentation for `NodeEncoder` class (#249)
nh916 Aug 9, 2023
50e0189
Std args json (#262)
InnocentBug Aug 9, 2023
32145de
wrote docs explaining host (#264)
nh916 Aug 10, 2023
db1c41d
change the representation of UID (#251)
InnocentBug Aug 10, 2023
e04ed5f
wrote example code docs for algorithm `type` attribute(#265)
nh916 Aug 10, 2023
7a9d673
changed CI to use staging host instead of develop (#266)
nh916 Aug 10, 2023
4a6640d
making `cript.API.search` tests more robust for all environments (#267)
nh916 Aug 11, 2023
299d34d
replacing all vocabulary links to new production server (#270)
nh916 Aug 12, 2023
d9935b6
fixing file upload for production AWS S3 server (#269)
nh916 Aug 12, 2023
8f4035b
fixing example documentation code last second (#271)
nh916 Aug 12, 2023
42613bd
fix various spelling (and ignore the others) (#274)
InnocentBug Aug 17, 2023
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
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/simple-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Simple Issue
about: Describe the issue
title:
labels: ""
assignees: ""
---

## Description
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Description

## Changes

## Tests

## Known Issues

## Notes

## Checklist

- [ ] My name is on the list of contributors (`CONTRIBUTORS.md`) in the pull request source branch.
- [ ] I have updated the documentation to reflect my changes.
21 changes: 21 additions & 0 deletions .github/workflows/build_and_deploy_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# build docs from master branch and push to gh-pages branch to be deployed to repository GitHub pages

name: Build & Deploy Docs
on:
push:
branches:
- develop

# trunk-ignore(yamllint/empty-values)
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install -r requirements_docs.txt
- run: mkdocs gh-deploy --force
78 changes: 78 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: CodeQL

on:
push:
branches:
- develop
- main
- trunk-merge/**
pull_request:
# The branches below must be a subset of the branches above
branches: [develop]
schedule:
- cron: 19 15 * * 2

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [python]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: /language:${{matrix.language}}
28 changes: 28 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: Dependency Review
on:
push:
branches:
- main
- develop
pull_request:
branches:
- develop
- main

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Dependency Review
uses: actions/dependency-review-action@v2
38 changes: 38 additions & 0 deletions .github/workflows/docs_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# this CI workflow checks the documentation for any broken links or errors within documentation files/configuration
# and reports errors to catch errors and never deploy broken documentation
name: MkDocs CI Check

on:
push:
branches:
- main
- develop
- "*"
- trunk-merge/**
pull_request:
branches:
- main
- develop
- "*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set Up Python
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install Python SDK
run: pip install -e .

- name: Install Doc Dependencies
run: pip install -r requirements_docs.txt

- name: Build and Test Documentation
run: mkdocs build
40 changes: 40 additions & 0 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# check code types with mypy to be sure the static types are correct and make sense

name: MyPy Check

on:
push:
branches:
- main
- develop
- trunk-merge/**
pull_request:
branches:
- main
- develop

jobs:
mypy-test:
strategy:
matrix:
python-version: [3.11]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Check out code
uses: actions/checkout@v2

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt

- name: Run MyPy
run: mypy src/cript/
49 changes: 49 additions & 0 deletions .github/workflows/test_coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# use pytest-cov to see what percentage of the code is being covered by tests
# WARNING: this workflow will fail if any of the tests within it fail

name: Test Coverage

on:
push:
branches:
- main
- develop
- trunk-merge/**
pull_request:
branches:
- main
- develop

jobs:
test-coverage:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.11]

env:
CRIPT_HOST: https://lb-stage.mycriptapp.org/
CRIPT_TOKEN: 125433546
CRIPT_STORAGE_TOKEN: 987654321
CRIPT_TESTS: False

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: upgrade pip
run: pip install --upgrade pip

- name: Install CRIPT Python SDK
run: pip install -e .

- name: Install requirements_dev.txt
run: pip install -r requirements_dev.txt

- name: Test Coverage
run: pytest --cov --cov-fail-under=89
46 changes: 46 additions & 0 deletions .github/workflows/test_examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test Jupyter Notebook

on:
push:
branches:
- main
- develop
- trunk-merge/**
pull_request:
branches:
- main
- develop

jobs:
test-examples:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.11]

env:
CRIPT_HOST: https://lb-stage.mycriptapp.org/
CRIPT_TOKEN: 123456789
CRIPT_STORAGE_TOKEN: 987654321

steps:
- name: Checkout
uses: actions/checkout@v3

- name: install test dependency
run: python3 -m pip install -r requirements_docs.txt

- name: install module
run: python3 -m pip install .

- name: prepare notebook
run: |
jupytext --to py docs/examples/synthesis.md
jupytext --to py docs/examples/simulation.md

- name: Run script
run: |
python3 docs/examples/synthesis.py
python3 docs/examples/simulation.py
Loading
Loading