first CI test

This commit is contained in:
msramalho
2024-10-17 11:29:20 +01:00
parent 3432d35af6
commit 1a3273da7e

41
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis:6-alpine
ports:
- 6379:6379
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install pipenv
run: pip install pipenv
working-directory: src
- name: Install dependencies
run: pipenv install --dev
working-directory: src
- name: Run tests
run: pipenv run PYTHONPATH=. pytest -v --color=yes tests/
working-directory: src