diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 5972dd5..fbfa196 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -46,8 +46,7 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: | - pytest --cov=shortener | tee coveragefile - cat coveragefile | grep TOTAL | xargs -n 1 | tail -n 1 | xargs python upload_test_coverage.py + pytest --cov=shortener env: DB_HOST: localhost DB_PORT: ${{ job.services.postgres.ports[5432] }} # get randomly assigned published port