Skip to content

Update test_app.py #223

Update test_app.py

Update test_app.py #223

Workflow file for this run

name: API workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Test python API
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install requirements
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: Create OWNERS JSON File
env:
OWNERS: ${{ secrets.OWNERS }}
run: echo $OWNERS | base64 -di > ./OWNERS.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]
with:
gcov_ignore: fantasy_app/espn_api_submodule