Skip to content

Commit

Permalink
Initial pipeline commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nanory committed Nov 24, 2023
1 parent 24677bf commit 6c7e125
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test

on:
pull_request:
push:
branches:
- main
- add-ci-pipeline
release:
types:
- published

jobs:
test:
runs-on: ubuntu-latest

env:
DATABASE_URL: postgres://user:password@localhost:5432/glvd_test

services:
postgres:
image: postgres
env:
POSTGRES_DB: glvd_test
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- 5432:5432

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Prepare test utilities
run: |
sudo apt update
sudo apt install -y ca-certificates python3-pip python3-pytest python3-pytest-flake8 mypy
sudo pip install .
- name: Run py.test
run: py.test-3 --flake8

- name: Run mypy
run: mypy --show-error-codes --namespace-packages src tests
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.11"
python = ">=3.10"
asyncpg = ">=0.28"
quart = ">=0.18"
requests = ">=2"
Expand All @@ -23,7 +23,7 @@ pytest-asyncio = ">=0.20"
requests-mock = ">=1.9"

[tool.pytest.ini_options]
minversion = "7.0"
minversion = "6.0"
addopts = [
"--import-mode=importlib",
]
Expand Down

0 comments on commit 6c7e125

Please sign in to comment.