-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4614c93
commit f89605d
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 /') | ||
|
@@ -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/ | ||
|