Skip to content

Commit b040b38

Browse files
committed
make test now supports .env
1 parent 1095523 commit b040b38

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEON_API_KEY=...

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ build/**
66
dist/**
77
Pipfile
88
Pipfile.lock
9+
.env
10+
venv/

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
test:
2-
pytest --record-mode=none tests/
2+
set -a && source .env && set +a; pytest --record-mode=none tests/
33

44
fmt:
55
ruff format .
6+
67
ci:
78
pytest --cov=neon_client --record-mode=none tests/
89

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ This will install all the necessary dependencies for development.
113113
To run the tests, use the following command:
114114

115115
```bash
116+
# set up a .env file with your API key as per `.env.example`
116117
$ make test
117118
```
118119

0 commit comments

Comments
 (0)