We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a453a2a commit f497c16Copy full SHA for f497c16
.github/workflows/pytest.yml
@@ -15,6 +15,7 @@ on:
15
jobs:
16
tests:
17
runs-on: ubuntu-latest
18
+ environment: release
19
20
steps:
21
- uses: actions/checkout@v4
@@ -31,5 +32,7 @@ jobs:
31
32
pip install pytest
33
34
- name: Test with pytest
35
+ env:
36
+ FERNET_KEY: ${{ secrets.FERNET_KEY }}
37
run: |
38
pytest tests/
tests/test_auth.py
@@ -0,0 +1,8 @@
1
+import sys
2
+import os
3
+
4
+def test_import():
5
+ sys.path.insert(0, ".")
6
7
+ assert "FERNET_KEY" in os.environ
8
+ assert len(os.environ["FERNET_KEY"]) == 32
0 commit comments