Skip to content

Commit acf8b3f

Browse files
authored
chore: setup GitHub actions to run unit tests (#13)
Setup github actions to run unit tests
1 parent 153f5f0 commit acf8b3f

4 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Continuous Integration"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
name: Unit tests
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 10
10+
strategy:
11+
matrix:
12+
python-version: ['3.7', '3.8', '3.9', '3.10']
13+
steps:
14+
- name: Check out repository code
15+
uses: actions/checkout@v2
16+
# Setup Python (faster than using Python container)
17+
- name: Setup Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install solid
22+
run: python setup.py install
23+
- name: Install pytest
24+
run: pip install pytest
25+
- name: Run pytest
26+
run: pytest
27+

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from setuptools import setup
2+
setup()

0 commit comments

Comments
 (0)