-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (41 loc) · 926 Bytes
/
test.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
41
42
43
44
45
46
name: Test the dashboard
on:
push:
branches:
- main
paths:
- src/**
- tests/**
- setup.py
- .github/workflows/test.yml
pull_request:
paths:
- app/**
- tests/**
- .github/workflows/test.yml
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Upgrade pip and install dependencies
run: |
python -m pip install --upgrade pip
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Run tests
run: |
source venv/bin/activate
pip install pytest
pytest tests