Skip to content

Commit

Permalink
Fix running test in README
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGrosjean committed Dec 31, 2023
1 parent 00a5295 commit b761aec
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,21 @@ cd tests
python -m unittest discover
```

If some tests fails with error `ModuleNotFoundError: No module named 'src'`, run the following command in the root directory.


On Windows:

```
set PYTHONPATH=%CD%
```

On Linux

```
export PYTHONPATH=${PYTHONPATH}:${PWD}
```

## Run actions

Th upload badge to GitHub action should have access to your GitHub repository. Strongly recommend store it in secrets. [Create a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with the `repo` permission. [Create a secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets) named `ACCESS_TOKEN` in your repository and copy access token to the secret value.
Expand Down

0 comments on commit b761aec

Please sign in to comment.