Commit 92cf1722 authored by Kyle Sunden's avatar Kyle Sunden
Browse files

Merge branch 'ci' into 'master'

add gitlab ci

See merge request !6
parents f032ae35 9476b5fb
Pipeline #132024090 passed with stages
in 2 minutes and 27 seconds
# byte-compiled
__pycache__/
*.py[cod]
# direnv
*.envrc
# distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
temp/
*.egg-info/
.installed.cfg
*.egg
*.p
# emacs
flycheck_*.el
.projectile
*.#*
# images
*.jpg
*.gif
*.png
!logo/logo.png
*.svg
*.ico
# mypy
.mypy_cache/
# tests / coverage reports
.coverage
.coverage.*
.cache
coverage.xml
*,cover
.pytest_cache/*
# vim
*.sw?
# pages output
public
# This file is a template, and might need editing before it works on your project.
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
stages:
- build
- test
- deploy
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- venv/
before_script:
- python -V # Print out python version for debugging
- pip install -U virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -U twine
- pip install -U mypy
- pip install -U yaqd_core
mypy:
stage: test
script:
- mypy yaqd_gdrive
run:
stage: build
script:
- python setup.py sdist bdist_wheel
# an alternative approach is to install and run:
- pip install -U dist/*.whl
# run the command here
artifacts:
paths:
- dist/*
deploy_twine:
stage: deploy
script:
- twine upload dist/*
artifacts:
paths:
- dist/*
only:
- tags
......@@ -15,3 +15,5 @@ repos:
- id: mypy
exclude: ^docs/conf.py
default_language_version:
python: python3.8
......@@ -9,8 +9,8 @@ import os
import pathlib
import webbrowser
import aiohttp
import aiohttp.web
import aiohttp # type: ignore
import aiohttp.web # type: ignore
import appdirs # type: ignore
import yaqd_core
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment