-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (29 loc) · 929 Bytes
/
tests.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
39
40
name: Testing
on:
push:
branches:
- main
# for "synchronize", see [1]
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
jobs:
pytest:
name: Pytest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'pipenv'
- name: Install pipenv
run: pip install pipenv
- name: Install dependencies (including dev dependencies)
run: pipenv install --dev
- name: Install ResultWizard itself (as editable)
run: pipenv run pip3 install --editable .
- name: Run Pytest
run: pipenv run pytest tests/
# [1] https://github.com/orgs/community/discussions/26366