Update packaging to 24.2 #2523
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python application | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:11.5 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: postgres | |
ports: ['5432:5432'] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Copying configurations | |
run: | | |
cp contrib/env_sample .env | |
- name: Install dependencies | |
run: | | |
pip install pipenv | |
pipenv sync --dev | |
- name: Lint with flake8 | |
run: | | |
pipenv run flake8 . | |
- name: Test with pytest | |
run: | | |
pipenv run pytest djangoaulas --cov=djangoaulas | |
- name: Posting Coverage | |
env: | |
CODECOV_TOKEN: "09d64a4e-fb35-4337-9cf0-c424bbdaac56" | |
run: | | |
pipenv run codecov |