Skip to content
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
92 changes: 91 additions & 1 deletion .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,103 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Checkout trame-client fork for testing
uses: actions/checkout@v4
with:
repository: jcapriot/trame-client
ref: Pep420
path: local_trame_client

- name: Install trame-client fork for testing
run: |
cd local_trame_client
cd vue2-app
npm ci
npm run build
cd ..
cd vue3-app
npm ci
npm run build
cd ..
pip install .

- name: Install and Run Tests
run: |
pip install ".[dev]"
pip install -r tests/requirements.txt
# Run the tests with coverage so we get a coverage report too
pip install coverage
coverage run --source . -m pytest .
coverage run --source . -m pytest . --ignore=local_trame_client
Comment on lines +59 to +85
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed before merging, it's just to demonstrate that it works with the changes proposed in the matching PR to trame-client

# Print the coverage report
coverage report -m

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3


pytest-editable:
name: Pytest editable install ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
trame-editable: ["", "-e"]
trame-client-editable: ["", "-e"]
config:
- {
name: "Linux",
os: ubuntu-latest
}
# - {
# name: "MacOSX",
# os: macos-latest
# }
# - {
# name: "Windows",
# os: windows-latest
# }

defaults:
run:
shell: bash

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

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

- name: Checkout trame-client fork for testing
uses: actions/checkout@v4
with:
repository: jcapriot/trame-client
ref: Pep420
path: local_trame_client

- name: Install trame-client fork for testing
run: |
cd local_trame_client
cd vue2-app
npm ci
npm run build
cd ..
cd vue3-app
npm ci
npm run build
cd ..
pip install ${{ matrix.trame-client-editable }} .

- name: Install and Run Tests
run: |
pip install ${{ matrix.trame-editable}} ".[dev]"
pip install -r tests/requirements.txt
# Run the tests with coverage so we get a coverage report too
pip install coverage
coverage run --source . -m pytest . --ignore=local_trame_client
# Print the coverage report
coverage report -m

Expand Down
1 change: 0 additions & 1 deletion trame/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion trame/assets/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

1 change: 0 additions & 1 deletion trame/modules/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion trame/tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

1 change: 0 additions & 1 deletion trame/ui/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion trame/widgets/__init__.py

This file was deleted.