Skip to content

build(deps): bump the ci group (#211) #527

build(deps): bump the ci group (#211)

build(deps): bump the ci group (#211) #527

Workflow file for this run

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.11"]
visibility: ["private", "public"]
stream_type: ["REST", "GraphQL"]
auth_method: ["API Key", "Bearer Token", "Basic Auth", "OAuth2", "JWT", "Custom or N/A"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
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 }}')"