forked from nhs-r-community/github_actions_workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 787 Bytes
/
run_pytest.yml
File metadata and controls
27 lines (25 loc) · 787 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
name: Run Pytest #running pytest on github codespaces
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: checkout the repo # names are optional, to make code readable
uses: actions/checkout@v3 # add 2 spaces before uses
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install dependences
run:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: pytest