-
Notifications
You must be signed in to change notification settings - Fork 20
44 lines (37 loc) · 870 Bytes
/
Copy pathmaster.yml
File metadata and controls
44 lines (37 loc) · 870 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
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Tests
on:
push:
branches:
- master
paths-ignore:
- 'benchmarks/**'
- 'docs/**'
- 'examples/**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup environment (lint)
uses: ./.github/actions/setup-env
with:
python-version: "3.10"
install-flags: "--all-extras"
- name: Run linters
run: poetry run pre-commit run --all-files
test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup environment (test)
uses: ./.github/actions/setup-env
with:
python-version: "3.10"
install-flags: "--all-extras"
- name: Run tests
run: poetry run pytest