Created
March 21, 2021 21:32
-
-
Save Riverfount/5c79bcde842803c0af001c626a7aacec to your computer and use it in GitHub Desktop.
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: CI | |
on: pull_request | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8.6] | |
poetry-version: [1.1.4, 1.1.5] | |
os: [ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
services: | |
postgres: | |
image: postgres:13.2 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: pypro_bd | |
ports: ['5432:5432'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Running image | |
uses: abatilo/actions-poetry@v2.0.0 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Copying configurations | |
run: | | |
cp contrib/env-sample .env | |
- name: Installing Dependencies | |
run: | | |
poetry install | |
- name: Linting with flake8 | |
run: | | |
poetry run flake8 . | |
- name: Testing with Pytest | |
run: | | |
poetry run pytest --cov=eventex | |
- name: Posting Coverage | |
env: | |
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} | |
run: | | |
poetry run codecov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment