Skip to content

Commit

Permalink
fix: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Apr 30, 2021
1 parent 0fb6fb1 commit a6a8a5e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,33 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.8]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- uses: Gr1N/setup-poetry@v4
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- run: poetry --version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
make setup
- name: run make check
uses: golangci/golangci-lint-action@v2
env:
DJANGO_ENV: ci
run: make check
2 changes: 2 additions & 0 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- dev
- master
repository_dispatch:
types: [Check Lint]
jobs:
build-code:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
用diango开发的全新的shadowsocks网络面板

[![CodeFactor](https://www.codefactor.io/repository/github/ehco1996/django-sspanel/badge)](https://www.codefactor.io/repository/github/ehco1996/django-sspanel)

[![simpleui](https://img.shields.io/badge/developing%20with-Simpleui-2077ff.svg)](https://github.com/newpanjing/simpleui)
![example workflow](https://github.com/Ehco1996/django-sspanel/actions/workflows/code.yml/badge.svg)

![check](https://github.com/Ehco1996/django-sspanel/actions/workflows/check.yml/badge.svg)

![code](https://github.com/Ehco1996/django-sspanel/actions/workflows/code.yml/badge.svg)

* Telegram group : [invite link](https://t.me/Ehcobreakwa11)

Expand Down

0 comments on commit a6a8a5e

Please sign in to comment.