Skip to content

Commit

Permalink
Add docs on how to run tests (#53)
Browse files Browse the repository at this point in the history
* add docs on how to run tests, use `sys.executable` instead of `"python"`

* Update README.md

* Update README.md

Co-authored-by: Christian Clauss <[email protected]>

* Update test_outputs.py

* Update _prepare_outputs.py

* Update lint_python.yml

---------

Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
aduh95 and cclauss authored Mar 24, 2024
1 parent 5f90621 commit 27fbbaf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: lint_python
on: [pull_request, push]
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
lint_python:
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,14 @@ Suggested code hygiene:
$ ruff --show-fixes --show-source .
$ black .
```

## Running tests locally

```sh
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install pytest
pip install --editable ".[dev]"
pytest
```

0 comments on commit 27fbbaf

Please sign in to comment.