Skip to content

Commit bd03a3d

Browse files
committed
D. J.:
- Added github workflows for automated unittests and formatting checks
1 parent 0e50dca commit bd03a3d

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.github/workflows/check-format.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check Format
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
9+
jobs:
10+
run-unittests:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: ["ubuntu-latest"]
15+
python-version: ["3.10"]
16+
name: ${{ matrix.os }} python-${{ matrix.python-version }}
17+
steps:
18+
- name: Set up the repository
19+
uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
pip install -r requirements.txt
27+
pip install black
28+
- name: Check Format with Black
29+
run: |
30+
black --check .

.github/workflows/run-unittests.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run Unittests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
9+
jobs:
10+
run-unittests:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: ["ubuntu-latest"]
15+
python-version: ["3.10"]
16+
name: ${{ matrix.os }} python-${{ matrix.python-version }}
17+
steps:
18+
- name: Set up the repository
19+
uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
pip install -r requirements.txt
27+
pip install pytest
28+
- name: Run Unittests
29+
run: |
30+
pytest

requirements.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)