feat: Update dependencies (#213) #533
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: Test template output | |
on: | |
pull_request: | |
paths: | |
- src/** | |
- noxfile.py | |
- .github/workflows/test.yml | |
- .github/workflows/constraints.txt | |
push: | |
branches: | |
- 'main' | |
paths: | |
- src/** | |
- noxfile.py | |
- .github/workflows/test.yml | |
- .github/workflows/constraints.txt | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
linting: | |
env: | |
FORCE_COLOR: "1" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.12"] | |
visibility: ["private", "public"] | |
stream_type: ["REST", "GraphQL"] | |
auth_method: ["API Key", "Bearer Token", "Basic Auth", "OAuth2", "JWT", "Custom or N/A"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: .github/workflows/constraints.txt | |
- name: Upgrade pip | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pip install pip | |
pip --version | |
- name: Install copier | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pipx install copier | |
copier --version | |
- name: Install Hatch | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pipx install hatch | |
hatch --version | |
- name: Install Nox | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pipx install nox | |
nox --version | |
- name: Install pre-commit | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pipx install pre-commit | |
pre-commit --version | |
- name: Run Nox | |
run: | | |
nox -s "lint-${{ matrix.python-version }}(visibility='${{ matrix.visibility }}', auth_method='${{ matrix.auth_method }}', stream_type='${{ matrix.stream_type }}')" |