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

Fix error on yakut/cmd/monitor/_model.py #108

Merged
merged 4 commits into from
Jul 29, 2024
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
10 changes: 7 additions & 3 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Test and Release Yakut'
on: push
name: 'Test and release Yakut'
on: [ push, pull_request ]

# Ensures that only one workflow is running at a time
concurrency:
Expand All @@ -9,6 +9,8 @@ concurrency:
jobs:
yakut-test:
name: Test Yakut
# https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=edited#pull_request
if: (github.event_name == 'push') || github.event.pull_request.head.repo.fork
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -71,7 +73,9 @@ jobs:
yakut-release:
name: Release Yakut
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '#release') || contains(github.ref, '/main')
if: >
(github.event_name == 'push') &&
(contains(github.event.head_commit.message, '#release') || contains(github.ref, '/main'))
needs: yakut-test
steps:
- name: Check out
Expand Down
2 changes: 1 addition & 1 deletion yakut/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.2
0.13.3
4 changes: 2 additions & 2 deletions yakut/cmd/monitor/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def __repr__(self) -> str:
def expand_subjects(m: uavcan.node.port.SubjectIDList_1) -> AbstractSet[int]:
if m.sparse_list is not None:
return frozenset(int(x.value) for x in m.sparse_list)
if m.mask:
return expand_mask(m.mask)
if m.mask is not None and m.mask.any():
return expand_mask(m.mask)
if m.total:
return _COMPLETE_SUBJECT_SET
assert False
Expand Down
Loading