Skip to content

Update year in LICENSE #57

Update year in LICENSE

Update year in LICENSE #57

Workflow file for this run

name: pytest
on:
push:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: save_favourite_color_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11.4'
cache: 'pip'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-ci.txt
- name: Lint with flake8
run: |
python -m flake8 . --count --max-line-length=120 --statistics --exclude=migrations
- name: Test with pytest
run: pytest tests/ --cov-config=.coveragerc --cov=app --disable-warnings
env:
FLASK_SECRET_KEY: ${{ secrets.FLASK_SECRET_KEY }}
DATABASE_URL_TEST: postgresql://postgres:postgres@localhost:5432/save_favourite_color_test
- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}