Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit d3dc757

Browse files
committed
ci 3
1 parent 3a83fa3 commit d3dc757

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
- name: Test with pytest
4747
id: pytest
4848
run: |
49+
pwd
4950
pytest -s -v -k test_dynamic
5051
5152
- uses: act10ns/slack@v1

runestone/conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,21 @@
3232
# Run this once, before all tests, to update the webpacked JS.
3333
@pytest.fixture(scope="session", autouse=True)
3434
def run_webpack():
35+
p = subprocess.run(["pwd"], text=True, shell=True, capture_output=True)
36+
print(p.stderr + p.stdout)
37+
assert not p.returncode
38+
39+
40+
3541
# Note that Windows requires ``shell=True``, since the command to execute is ``npm.cmd``. Use the ``--`` to pass following args to the script (webpack), per the `npm docs <https://docs.npmjs.com/cli/v7/commands/npm-run-script>`_. Use ``--env test`` to tell webpack to do a test build of the Runestone Components (see `RAND_FUNC <RAND_FUNC>`).
3642
p = subprocess.run(["npm", "run", "build", "--", "--env", "test"], text=True, shell=IS_WINDOWS, capture_output=True)
3743
print(p.stderr + p.stdout)
3844
assert not p.returncode
3945

46+
p = subprocess.run(["ls", "-la", "runestone/dist"], text=True, shell=IS_WINDOWS, capture_output=True)
47+
print(p.stderr + p.stdout)
48+
assert not p.returncode
49+
4050

4151
# Provide access to the module fixture, for tests with specific needs.
4252
@pytest.fixture(scope="module")

0 commit comments

Comments
 (0)