Skip to content

Commit ba90a59

Browse files
authored
Create tests.yml workflow
1 parent f9436ad commit ba90a59

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run unit tests (for minimal build)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Setup Python
13+
uses: actions/[email protected]
14+
with:
15+
# Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset.
16+
python-version: "3.12"
17+
# Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry.
18+
cache: "pip"
19+
- name: Update installation tools
20+
run: python -m pip install --upgrade pip setuptools wheel
21+
- name: Install TurtleThread Minimal
22+
run: pip install .
23+
- name: Install pytest
24+
run: pip install pytest
25+
- name: Run tests with pytest
26+
run: pytest tests/minimal/
27+
28+

0 commit comments

Comments
 (0)