Skip to content

Commit

Permalink
refactor and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmshn committed Jan 8, 2023
1 parent cd67c76 commit 6d6882d
Show file tree
Hide file tree
Showing 10 changed files with 478 additions and 377 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
python -m pip install --user --upgrade pip pip-tools numpy
python -m piptools sync --user requirements/ubuntu-latest_py${{ matrix.python-version }}_extras.txt
python -m pip install --user --no-deps .
- name: Test with pytest
- name: Test Apps with pytest
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: pytest --color=yes --webdriver Chrome --headless crystal_toolkit/apps/examples/tests/

- name: Test other modules with pytest
run: pytest ./tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ docs_rst/_build
build/*
*.egg-info
dist/*
.vscode
24 changes: 15 additions & 9 deletions crystal_toolkit/defaults.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
{
"scene": {
"Cylinders": {
"cylinders": {
"color": "#000000",
"radius": 0.15
"radius": 0.15,
"light": true,
"opacity": 1.0
},
"Lines": {
"lines": {
"color": "#000000",
"linewidth": 3.0
"linewidth": 3.0,
"opacity": 1.0
},
"Surfaces": {
"surface": {
"color": "#6495ed",
"opacity": 0.5,
"edge_width" : 0.2
"edge_width" : 0.2,
"light": true,
"opacity": 0.5
},
"Spheres": {
"spheres": {
"color": "#000000",
"radius": 0.5
"radius": 0.5,
"light": true,
"opacity": 1.0
}
}
}
Loading

0 comments on commit 6d6882d

Please sign in to comment.