Skip to content

Commit 471ea06

Browse files
committed
Add pytest actions workflow
1 parent b42dfcf commit 471ea06

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [development]
6+
pull_request:
7+
branches: [development]
8+
workflow_dispatch:
9+
10+
jobs:
11+
12+
build:
13+
name: Test
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest]
19+
python-version: ['3.7', '3.8', '3.9', '3.10']
20+
architecture: ['x64']
21+
22+
steps:
23+
- uses: actions/checkout@master
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
architecture: ${{ matrix.architecture }}
29+
- name: dependencies
30+
run: |
31+
python -m pip install -U pip wheel setuptools
32+
- name: wheel
33+
run: |
34+
python -m pip install -e .[tests]
35+
- name: pytest
36+
run: |
37+
pytest --cov=pytiled_parser --cov-report=xml --cov-report=html
38+

0 commit comments

Comments
 (0)