Skip to content

CI: Harden GHA configuration #129

CI: Harden GHA configuration

CI: Harden GHA configuration #129

Workflow file for this run

---
name: Tests
permissions:
contents: read
on: [push, pull_request]
jobs:
webhook:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r webhook/dev-requirements.txt
git config --global user.name "GitHub CI Bot"
git config --global user.email "[email protected]"
- name: Run tests
run: pytest webhook