Skip to content

Commit 3100440

Browse files
committed
add workflows for tests
1 parent 44bf110 commit 3100440

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/codecov.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
informational: true
6+
patch:
7+
default:
8+
informational: true

.github/workflows/Tests.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Tests
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
Test:
7+
strategy:
8+
matrix:
9+
python-version: ["3.10"]
10+
os: [ubuntu-latest]
11+
12+
runs-on: ${{ matrix.os }}
13+
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install test dependencies
24+
run: python -m pip install --no-cache-dir --quiet mypy coverage build
25+
26+
- name: Run MyPy
27+
run: python -m mypy --cache-dir=/dev/null -p lambda_calculus
28+
29+
- name: Build wheel
30+
run: python -m build
31+
32+
- name: Install wheel
33+
run: python -m pip install --no-cache-dir dist/lambda_calculus-*.whl
34+
35+
- name: Run tests and generate report
36+
run: coverage run -m unittest discover --verbose
37+
38+
- name: Upload coverage
39+
uses: codecov/codecov-action@v3
40+
with:
41+
flags: ${{ runner.os }}

0 commit comments

Comments
 (0)