-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 924 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
name: Python Test
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11.1
# we need to build the package for generating the _version.py file that isn't checked in
- name: Install dependencies and build package
run: |
python -m pip install --upgrade pip build wheel
python -m pip install -r requirements.txt
python -m build --sdist --wheel --outdir dist
- name: Install dependencies
run: pip install pytest pytest-md pytest-emoji
- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: false
click-to-expand: true
report-title: 'Test Report'