Skip to content

Commit 1b2a11c

Browse files
test worker
1 parent 797cf21 commit 1b2a11c

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/test-worker.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run Python tests
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build:
7+
name: Run tests
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
12+
13+
steps:
14+
- uses: szenius/set-timezone@v1.2
15+
with:
16+
timezoneLinux: "Asia/Singapore"
17+
- uses: actions/checkout@v3
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: pip install pytest pytest-md pytest-emoji
24+
- uses: pavelzw/pytest-action@v2
25+
with:
26+
emoji: false
27+
verbose: true
28+
job-summary: true
29+
click-to-expand: true
30+
report-title: 'Test Report'

0 commit comments

Comments
 (0)