-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (29 loc) 路 846 Bytes
/
build.yml
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
32
33
34
35
36
37
38
---
name: Build
on: [push, pull_request]
jobs:
pre-commit:
name: Pre-commit (linting)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
pytest-in-venv:
name: Python tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
- name: Install dependencies
run: pip install -r requirements/requirements-test.txt
- name: Run the tests
run: pytest