diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index fd60e93..0000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Coverage - -on: - workflow_run: - workflows: ["Tests"] - types: - - completed - -jobs: - coverage: - name: Run tests & display coverage - runs-on: ubuntu-latest - if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' - permissions: - # Gives the action the necessary permissions for publishing new - # comments in pull requests. - pull-requests: write - # Gives the action the necessary permissions for editing existing - # comments (to avoid publishing multiple comments in the same PR) - contents: write - # Gives the action the necessary permissions for looking up the - # workflow that launched this workflow, and download the related - # artifact that contains the comment to be published - actions: read - steps: - - name: Post comment - uses: py-cov-action/python-coverage-comment-action@v3 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }} - verbose: true \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1e8385c..17fcdb1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,33 @@ on: jobs: unit-tests: runs-on: ubuntu-latest + env: + AUTH_CLIENT: regtech-client + AUTH_URL: http://localhost:8880/realms/regtech/protocol/openid-connect/auth + TOKEN_URL: http://localhost:8880/realms/regtech/protocol/openid-connect/token + CERTS_URL: http://localhost:8880/realms/regtech/protocol/openid-connect/certs + KC_URL: http://localhost:8880/;KC_REALM=regtech;KC_ADMIN_CLIENT_ID=admin-cli + KC_ADMIN_CLIENT_SECRET: local_test_only + KC_REALM_URL: http://localhost:8880/realms/regtech + DB_NAME: filing + DB_USER: filing_user + DB_PWD: filing_user + DB_HOST: localhost:5432 + DB_SCHEMA: filing + JWT_OPTS_VERIFY_AT_HASH: false + JWT_OPTS_VERIFY_AUD: false + JWT_OPTS_VERIFY_ISS: false + FS_UPLOAD_CONFIG__PROTOCOL: file + FS_UPLOAD_CONFIG__ROOT: ../upload + INST_DB_HOST: localhost:5432 + INST_DB_NAME: financial_institutions + INST_DB_PWD: fi + INST_DB_SCHEMA: public + INST_DB_USER: fi + EXPIRED_SUBMISSION_CHECK_SECS: 120 + SERVER_CONFIG__RELOAD: true + PYTHONUNBUFFERED: 1 + DB_SCHEME: postgresql permissions: # Gives the action the necessary permissions for publishing new # comments in pull requests.