-
Notifications
You must be signed in to change notification settings - Fork 0
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
776a2be
commit f021de4
Showing
1 changed file
with
5 additions
and
4 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 |
---|---|---|
|
@@ -8,10 +8,6 @@ jobs: | |
name: Test python API | ||
|
||
steps: | ||
- name: Create FIREBASE CREDS JSON File | ||
env: | ||
FIREBASE_CREDS: ${{ secrets.FIREBASE_CREDS }} | ||
run: echo $FIREBASE_CREDS | base64 -di > ./CREDS.json | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
|
@@ -20,13 +16,18 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Create FIREBASE CREDS JSON File | ||
env: | ||
FIREBASE_CREDS: ${{ secrets.FIREBASE_CREDS }} | ||
run: echo $FIREBASE_CREDS | base64 -di > ./CREDS.json | ||
- name: Run tests and collect coverage | ||
run: | | ||
pytest --cov=./ --cov-report=xml | ||
env: | ||
ESPN_S2: ${{ secrets.ESPN_S2 }} | ||
LEAGUE_ID: ${{ secrets.LEAGUE_ID }} | ||
SWID: ${{ secrets.SWID }} | ||
|
||
- name: Upload coverage reports to Codecov with GitHub Action | ||
uses: codecov/[email protected] | ||
|
||
|