Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hanruihua committed Nov 26, 2024
1 parent 65bc8a9 commit 26f4936
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,33 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}


name: Run tests and upload coverage

on:
push

jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4

- name: Install dependencies
run: pip install pytest pytest-cov

- name: Run tests
run: pytest --cov --cov-report=xml

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion tests/test_all_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

def test_all_objects():

env = irsim.make(display=False)
env = irsim.make('test_all_objects.yaml', display=False)

for i in range(100):

Expand Down

0 comments on commit 26f4936

Please sign in to comment.