Skip to content

fix: added example for dynamic token auth #102

fix: added example for dynamic token auth

fix: added example for dynamic token auth #102

Workflow file for this run

name: release
on:
push:
branches: [ main ]
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Python 3.13
uses: actions/setup-python@v6
with:
python-version: 3.13
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv sync --locked --all-extras --dev
- name: Lint code
run: |
uv run inv lint
- name: Run tests
run: |
uv run inv atest
- name: Upload runner test results
uses: actions/upload-artifact@v5
if: always()
with:
name: atest-result-runner-python-3.13
path: atest/output_runner/
- name: Upload library test results
if: always()
uses: actions/upload-artifact@v5
with:
name: atest-result-library-python-3.13
path: atest/output_library/
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
run: |
uv version ${{ steps.release.outputs.version }}
uv run inv version ${{ steps.release.outputs.version }}
uv build
ls -l dist/
uv publish
if: steps.release.outputs.released == 'true'
- uses: EndBug/add-and-commit@v9
name: Save version
with:
add: "['pyproject.toml', 'uv.lock', 'src/SchemathesisLibrary/__init__.py']"
author_name: Schemathesis Library
author_email: Schemathesis@Library
message: "Update version information to ${{ steps.release.outputs.version }}"
if: steps.release.outputs.released == 'true'
- name: Create keyword documentation
run: |
uv run inv docs --set-version ${{ steps.release.outputs.version }}
uv run inv docs
uv run inv old-version-docs --version ${{ steps.release.outputs.version }}
if: steps.release.outputs.released == 'true'
- uses: EndBug/add-and-commit@v9
name: Save keyword documentation
with:
add: "['docs/SchemathesisLibrary.html', 'docs/versions/SchemathesisLibrary-${{ steps.release.outputs.version }}.html', 'docs/versions/index.md']"
author_name: Schemathesis Library
author_email: Schemathesis@Library
message: "Update keyword documentation for version ${{ steps.release.outputs.version }}"
if: steps.release.outputs.released == 'true'