-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 821 Bytes
/
Copy pathtests.yml
File metadata and controls
37 lines (29 loc) · 821 Bytes
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
name: Tests
on:
pull_request:
push:
permissions:
contents: read
jobs:
unit:
name: Python 3.9 on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.9"
- name: Check shell syntax
run: bash -n paperscript.sh 1MB-minecraft.sh tests/live-smoke.sh
- name: Check Python syntax
run: python -m py_compile paperscript/paperscript.py tests/test_paperscript.py tests/test_1mb_minecraft.py
- name: Run unit tests
run: python -m unittest discover -s tests -p "test_*.py" -v