Skip to content

Commit

Permalink
update issue_template、workflows 、badge
Browse files Browse the repository at this point in the history
add coverage
remove travis ci
  • Loading branch information
hhyo committed Dec 12, 2021
1 parent 4a5857b commit 59f8985
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 36 deletions.
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: BUG提交
about: BUG提交,必须使用这个模板,不规范issue将直接关闭
title: "[ bug ]"
title: "[ bug ]请简要描述"
labels: ''
assignees: ''

Expand Down Expand Up @@ -36,7 +36,6 @@ assignees: ''
```
/logs/archery.log
/logs/qcluster.log
/logs/soar.log
docker logs archery -f --tail=10
```
-->
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: 问题咨询
about: 如果在使用过程中遇到问题,在查阅文档后仍无法解决,可以在此反馈
title: '[ 问题咨询 ]'
title: '[ 问题咨询 ]请简要描述'
labels: 'question'
assignees: ''

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: 功能建议
about: 如果你对Archery有什么功能或者改进建议,请在此反馈,也欢迎直接向我们提交pr
title: '[ 功能建议 ]'
title: '[ 功能建议 ]请简要描述'
labels: ''
assignees: ''

Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:
- 'master'

jobs:
runner:
django_ci:
name: Build and Test a Django Project
runs-on: ubuntu-latest

strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.6, 3.7, 3.8, 3.9]

# https://github.com/actions/example-services/tree/master/.github/workflows
services:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
run: |
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev unixodbc unixodbc-dev
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install codecov coverage flake8 -r requirements.txt
- name: Init Table
run: |
Expand All @@ -84,4 +84,12 @@ jobs:
run: |
python manage.py makemigrations
python manage.py makemigrations sql
python manage.py test -v 3 --keepdb
coverage run manage.py test -v 3 --keepdb
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
push_to_registries:
name: Push Docker image to multiple registries
name: Build and push Docker images
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# <a href="https://archerydms.com/" target="_blank" rel="noopener noreferrer">Archery</a>

[![star](https://gitee.com/rtttte/Archery/badge/star.svg?theme=gvp)](https://gitee.com/rtttte/Archery)
[![Build Status](https://app.travis-ci.com/hhyo/Archery.svg?branch=master)](https://app.travis-ci.com/github/hhyo/Archery)
[![Django CI](https://github.com/hhyo/Archery/actions/workflows/django.yml/badge.svg)](https://github.com/hhyo/Archery/actions/workflows/django.yml)
[![Release](https://img.shields.io/github/release/hhyo/archery.svg)](https://github.com/hhyo/archery/releases/)
[![codecov](https://codecov.io/gh/hhyo/archery/branch/master/graph/badge.svg)](https://codecov.io/gh/hhyo/archery)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/94e8587e507f4565a1ea5ea21fd94c32)](https://app.codacy.com/app/hhyo/Archery?utm_source=github.com&utm_medium=referral&utm_content=hhyo/Archery&utm_campaign=Badge_Grade_Dashboard)
[![version](https://img.shields.io/pypi/pyversions/django)](https://img.shields.io/pypi/pyversions/django/)
[![version](https://img.shields.io/badge/django-3.1-brightgreen.svg)](https://docs.djangoproject.com/zh-hans/3.1/)
[![Publish Docker image](https://github.com/hhyo/Archery/actions/workflows/docker-image.yml/badge.svg)](https://github.com/hhyo/Archery/actions/workflows/docker-image.yml)
[![docker_pulls](https://img.shields.io/docker/pulls/hhyo/archery.svg)](https://hub.docker.com/r/hhyo/archery/)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://github.com/hhyo/archery/blob/master/LICENSE)
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)
Expand Down

0 comments on commit 59f8985

Please sign in to comment.