Skip to content

feat: Update dependencies (#187) #454

feat: Update dependencies (#187)

feat: Update dependencies (#187) #454

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
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/[email protected]
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
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 Poetry
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
run: |
pipx install poetry
poetry --version
- name: Install copier
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
run: |
pipx install copier
copier --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 }}')"