-
Notifications
You must be signed in to change notification settings - Fork 21
49 lines (44 loc) · 1.14 KB
/
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
47
48
49
name: Test
on:
push:
branches: [development]
pull_request:
branches: [development]
workflow_dispatch:
jobs:
build:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
architecture: ['x64']
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: dependencies
run: |
python -m pip install -U pip wheel setuptools
- name: wheel
run: |
python -m pip install -e .[tests]
- name: ruff
run: |
ruff check pytiled_parser
- name: mypy
if: success() || failure()
run: |
mypy pytiled_parser
- name: black
if: success() || failure()
run: |
black pytiled_parser --check
- name: pytest
if: success() || failure()
run: |
pytest --cov=pytiled_parser --cov-report=xml --cov-report=html