Skip to content

Commit

Permalink
j ci
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-scherbakov committed Jan 7, 2024
1 parent 76e85eb commit 7daeb02
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:

- name: Test
shell: bash
# FIXME: This is ugly; move this inside `j test`.
run: poetry run j test -- -- --junitxml=tests/coverage/pytest.xml --cov-report= --cov-report=html:tests/coverage/html --cov=yaml_ld | tee tests/coverage/pytest-coverage.txt
run: poetry run j ci

# Report only changed files because the result is too large
- name: Pytest Coverage Comment
Expand Down
17 changes: 16 additions & 1 deletion jeeves.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
from sh import git
from sh import git, pytest, tee


def update_submodule():
"""Update the `specification` submodule from GitHub."""
git.submodule.update('--remote', '--init', '--recursive')


def ci():
"""Run CI."""
tee(
'tests/coverage/pytest-coverage.txt',
_in=pytest(
'tests',
junitxml='tests/coverage/pytest.xml',
cov_report=['', 'html:tests/coverage/html'],
cov='yaml_ld',
_piped=True,
_ok_code={0, 1},
),
)

4 comments on commit 7daeb02

@github-actions
Copy link

Choose a reason for hiding this comment

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

Tests Skipped Failures Errors Time
850 1 💤 409 ❌ 0 🔥 1m 51s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

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

Tests Skipped Failures Errors Time
850 1 💤 409 ❌ 0 🔥 1m 49s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

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

Tests Skipped Failures Errors Time
850 1 💤 409 ❌ 0 🔥 1m 51s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

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

Tests Skipped Failures Errors Time
850 1 💤 409 ❌ 0 🔥 2m 5s ⏱️

Please sign in to comment.