-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (26 loc) · 827 Bytes
/
tests.yml
File metadata and controls
31 lines (26 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
name: Tests
on: [push, pull_request]
jobs:
webhook:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
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 "noone@example.com"
- name: Run tests
run: pytest webhook