-
Notifications
You must be signed in to change notification settings - Fork 19
39 lines (29 loc) · 817 Bytes
/
tests.yml
File metadata and controls
39 lines (29 loc) · 817 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
name: Run Fast Tests on Push only
on:
push:
branches:
- 600-feature-improve-github-testing
pull_request:
jobs:
fast-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run:
pip install -r requirements.txt
- name: Install dependencies
run: pip install -r rtd_requirements.txt
- name: Install project
run: pip install -e .
- name: Run fast tests on push
if: github.event_name == 'push'
run: pytest -m "fast"
- name: Run all tests on PR
if: github.event_name == 'pull_request'
run: pytest