Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
name: Build, Push Docker Image & Publish to PyPI

permissions:
contents: read
packages: write

on:
push:
branches:
- 'v[0-9]+.[0-9]+.[0-9]+'


jobs:
release:
runs-on: ubuntu-latest

services:
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -61,9 +75,16 @@ jobs:

- name: Build Python package from pyproject.toml
run: python -m build


- name: Install python packages
run: pip install -r requirements.txt

- name: Linting
run: pylint
run: pylint src/second_brain_database

- name: Installing Second Brain Database
run: pip install .

- name: Run tests and generate coverage report
run: pytest --cov --cov-branch --cov-report=xml
Expand Down