Skip to content

Commit

Permalink
make test now supports .env
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomes committed Nov 17, 2024
1 parent 1095523 commit b040b38
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEON_API_KEY=...
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ build/**
dist/**
Pipfile
Pipfile.lock
.env
venv/
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
test:
pytest --record-mode=none tests/
set -a && source .env && set +a; pytest --record-mode=none tests/

fmt:
ruff format .

ci:
pytest --cov=neon_client --record-mode=none tests/

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ This will install all the necessary dependencies for development.
To run the tests, use the following command:

```bash
# set up a .env file with your API key as per `.env.example`
$ make test
```

Expand Down

0 comments on commit b040b38

Please sign in to comment.