use "uid" custom claim to get user_id from a token #103
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
name: build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
env: | |
USING_COVERAGE: "3.9" | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
make deps | |
- name: Run tox | |
run: | | |
make tox | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
if: contains(env.USING_COVERAGE, matrix.python-version) | |
with: | |
fail_ci_if_error: true |