Skip to content

[pre-commit.ci] pre-commit autoupdate #158

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #158

Workflow file for this run

name: Testing
on:
push:
branches:
- main
paths-ignore:
- docs/**
pull_request:
branches:
- main
paths-ignore:
- docs/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
pytest:
strategy:
fail-fast: false
matrix:
python-version:
- 3.8
- 3.9
- '3.10'
- '3.11'
- '3.12'
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install project
run: pip install .[test]
- name: Test with pytest
env:
LEAGUE_OF_COMIC_GEEKS__CLIENT_ID: IGNORED
LEAGUE_OF_COMIC_GEEKS__CLIENT_SECRET: IGNORED
LEAGUE_OF_COMIC_GEEKS__ACCESS_TOKEN: IGNORED
run: pytest
collector:
needs: [pytest]
if: always()
runs-on: ubuntu-latest
steps:
- name: Check for failures
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: echo job failed && exit 1