Skip to content

Commit 9c6ec51

Browse files
authored
Merge pull request #1 from code-specialist/initialVersion
Current work in progress
2 parents 8014bd8 + b7f59af commit 9c6ec51

20 files changed

+998
-0
lines changed

.github/workflows/test.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
python-version: [ "3.9", "3.10", "3.11" ]
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Poetry Cache
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.cache/pypoetry
23+
key: poetry-cache-${{ matrix.python-version }}
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@main
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Setup Test Infrastructure
31+
run: |
32+
docker-compose -f tests/docker-compose.yaml up -d
33+
shell: bash
34+
35+
- name: Install poetry
36+
run: pip install poetry==1.1.8 poetry-core==1.0.4
37+
shell: bash
38+
39+
- name: Install dependencies
40+
run: poetry install
41+
shell: bash
42+
43+
- name: Run Tests
44+
run: poetry run pytest
45+
shell: bash
46+
47+
- name: Linting
48+
run: poetry run pylint .
49+
shell: bash
50+
51+
- name: Teardown Test Infrastructure
52+
if: always()
53+
run: |
54+
docker-compose -f tests/docker-compose.yaml down
55+
shell: bash

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.idea
2+
.DS_Store
3+
.pytest_cache
4+
**/__pycache__/**
5+
**/test.db
6+
.coverage
7+
.venv

README.md

Whitespace-only changes.

0 commit comments

Comments
 (0)