Skip to content

Commit

Permalink
set up GDF in test_full
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthenian8 committed Dec 4, 2023
1 parent 4614c93 commit f89605d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ jobs:
name: "gdf_account.json"
json: ${{ secrets.GDF_ACCOUNT_JSON }}

- name: set up mutex
uses: ben-z/[email protected]

- name: run tests
env:
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,20 @@ jobs:
python -m pip install -e .[test_full]
shell: bash

- name: Create gdf_account.json
uses: jsdaniell/[email protected]
with:
name: "gdf_account.json"
json: ${{ secrets.GDF_ACCOUNT_JSON }}

- name: run pytest
env:
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_API_ID: ${{ secrets.TG_API_ID }}
TG_API_HASH: ${{ secrets.TG_API_HASH }}
TG_BOT_USERNAME: ${{ secrets.TG_BOT_USERNAME }}
HF_API_KEY: ${{ secrets.HF_API_KEY }}
GDF_ACCOUNT_JSON: ./gdf_account.json
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
source <(cat .env_file | sed 's/=/=/' | sed 's/^/export /')
Expand Down Expand Up @@ -77,12 +85,20 @@ jobs:
python -m pip install -e .[tests]
shell: bash

- name: Create gdf_account.json
uses: jsdaniell/[email protected]
with:
name: "gdf_account.json"
json: ${{ secrets.GDF_ACCOUNT_JSON }}

- name: run pytest
env:
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_API_ID: ${{ secrets.TG_API_ID }}
TG_API_HASH: ${{ secrets.TG_API_HASH }}
TG_BOT_USERNAME: ${{ secrets.TG_BOT_USERNAME }}
HF_API_KEY: ${{ secrets.HF_API_KEY }}
GDF_ACCOUNT_JSON: ./gdf_account.json
run: |
source <(cat .env_file | sed 's/=/=/' | sed 's/^/export /')
pytest --tb=long -vv --cache-clear --no-cov --allow-skip=all tests/
Expand Down

0 comments on commit f89605d

Please sign in to comment.