Skip to content
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
22 changes: 11 additions & 11 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@ source = pyrtl
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
# The standard pragma.
pragma: no cover

# ignore pass statements that are not run:
# sometimes you need them to make a block (especially for unittests)
# need to be really careful with this one because 'pass' shows up in other places as well
# ignore pass statements that are not run: sometimes you need them to make
# a block (especially for unittests). Need to be really careful with these
# regexes because 'pass' shows up in other places as well
\spass\s
\spass$

# Don't complain about missing debug-only code:
# Ignore debug-only code.
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
# Ignore assertion code.
raise AssertionError
raise NotImplementedError
raise PyrtlInternalError

# Don't complain if non-runnable code isn't run:
# Ignore exception error messages.
\smsg =

# Ignore unreachable code.
if 0:
if __name__ == .__main__.:

ignore_errors = True

omit =
.tox/*
*/tests/*
*/ctypes/*
six.py
pyparsing.py
10 changes: 5 additions & 5 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
- name: Build distribution archives
run: uv build
- name: Upload distribution archives
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: python-distribution-archives
path: dist/
Expand All @@ -46,7 +46,7 @@ jobs:

steps:
- name: Download distribution archives
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: python-distribution-archives
path: dist/
Expand All @@ -72,7 +72,7 @@ jobs:

steps:
- name: Download distribution archives
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: python-distribution-archives
path: dist/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
- name: Install apt dependencies
run: sudo apt install -y yosys
- name: Run tests
run: uv run just tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v7
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Loading