Skip to content

Commit bc12f10

Browse files
committed
[GHCI] source env file before launching pytest
1 parent 9779dda commit bc12f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
sleep 30 # ElasticSearch takes few seconds to start, make sure it is available when the build script runs
8585
- run: curl -v http://localhost:9200
8686
- name: Run tests
87-
run: pytest --cov-report term --cov-report xml --cov=c2corg_api
87+
run: export $(cat .env | grep -v "^#" | xargs) && pytest --cov-report term --cov-report xml --cov=c2corg_api
8888
- name: Send coverage to codacy
8989
# secrets are not available for PR from forks, and dependabot PRs
9090
if: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}

0 commit comments

Comments
 (0)