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

Add pytest to GH actions #5

Merged
merged 6 commits into from
Aug 16, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Follow example
davidmallasen committed Aug 16, 2024
commit c8d4f45b2af30575b289e08eb28afb322af7b964
10 changes: 6 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -13,6 +13,9 @@ on:
jobs:
cocotb-tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -23,14 +26,13 @@ jobs:
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yml
activate-environment: arithmetic_units
environment-file: environment.yml
auto-activate-base: false

- name: Run pytest
id: run-tests
run: |
conda activate arithmetic_units
pytest
run: pytest
continue-on-error: true

- name: Notify user on failure