Compare commits

..

10 Commits

Author SHA1 Message Date
Sasa Kocic ff9eb0704c update
continuous-integration/drone/push Build is passing Details
4 years ago
Sasa Kocic 6746b00382 update
4 years ago
Sasa Kocic b616b352fb trigger build
4 years ago
Sasa Kocic f4927a9aec trigger build
4 years ago
Sasa Kocic cbd2203290 trigger build
4 years ago
Sasa Kocic afa3e96853 trigger build
4 years ago
Sasa Kocic e827b2ab1e trigger build
4 years ago
Sasa Kocic a228d3a547 trigger build
4 years ago
Sasa Kocic 34b98a95e0 trigger build
4 years ago
Sasa Kocic e78f0ecdcc trigger build
4 years ago

@ -1,5 +1,9 @@
pipeline:
build:
kind: pipeline
name: build
type: docker
steps:
- name: test
image: python:3.10.1-slim-buster
commands:
- pip install --upgrade pip setuptools wheel
@ -8,8 +12,9 @@ pipeline:
- flake8 app
- mkdir -p coverage
- pytest tests/
when:
trigger:
branch:
- master
event:
- tag
ref:
- refs/tags/v*
- push

@ -1,8 +1,6 @@
# Drone Test
[![Build Status](https://drone.itspektar.com/api/badges/root/drone-test/status.svg)](https://drone.itspektar.com/root/drone-test)
[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](https://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
[![GitHub release](https://img.shields.io/github/release/go-gitea/gitea.svg)](https://github.com/go-gitea/gitea/releases/latest)
[![Help Contribute to Open Source](https://www.codetriage.com/go-gitea/gitea/badges/users.svg)](https://www.codetriage.com/go-gitea/gitea)
[![Become a backer/sponsor of gitea](https://opencollective.com/gitea/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/gitea)

@ -0,0 +1,8 @@
# test_hello.py
from app import app
def test_hello():
response = app.test_client().get('/')
assert response.status_code == 200
assert response.data == b'Hello, World!'
Loading…
Cancel
Save