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

Migrate widgets to 2.x #344

Merged
merged 3 commits into from
Nov 2, 2022
Merged
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
36 changes: 25 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,44 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: '3.10'

- uses: pre-commit/action@v2.0.0

test-app:
test-notebooks:

needs: [pre-commit]

runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
tag: [stable]
browser: [chrome, firefox]
tag: [latest]
browser: [Chrome, Firefox]
python-version: ['3.8', '3.10']
fail-fast: false

runs-on: ubuntu-latest
timeout-minutes: 10

steps:

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

- name: Test app
uses: aiidalab/aiidalab-test-app-action@v2
- name: Cache Python dependencies
uses: actions/cache@v1
with:
image: aiidalab/aiidalab-docker-stack:${{ matrix.tag }}
browser: ${{ matrix.browser }}
path: ~/.cache/pip
danielhollas marked this conversation as resolved.
Show resolved Hide resolved
key: pip-${{ matrix.python-version }}-tests-${{ hashFiles('**/setup.json') }}
restore-keys: pip-${{ matrix.python-version }}-tests

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

- name: Install dependencies for test
run: |
pip install -U -e .[tests]

- name: Run pytest
run: TAG=${{ matrix.tag }} JUPYTER_TOKEN=$(openssl rand -hex 32) pytest --driver ${{ matrix.browser }}
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version: 2
build:
os: ubuntu-20.04
tools:
python: '3.7'
python: '3.10'

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down
9 changes: 1 addition & 8 deletions aiidalab_widgets_base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@

load_profile()

from .codes import AiiDACodeSetup, CodeDropdown
from .computational_resources import (
ComputationalResourcesWidget,
ComputerDropdownWidget,
)
from .computers import AiidaComputerSetup, ComputerDropdown, SshComputerSetup
from .databases import (
CodeDatabaseWidget,
CodQueryWidget,
ComputerDatabaseWidget,
OptimadeQueryWidget,
)
from .databases import CodQueryWidget, OptimadeQueryWidget
from .elns import ElnConfigureWidget, ElnExportWidget, ElnImportWidget
from .export import ExportButtonWidget
from .nodes import NodesTreeWidget, OpenAiidaNodeInAppWidget
Expand Down
Loading