From 74fa62d4f887444d8f21ee71d1e8d7292b4c9e8c Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Sat, 21 Nov 2020 16:06:06 +0800 Subject: [PATCH] ci: setup github action --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..57f52b2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + - branch: [ master ] + workflow_dispatch: + schedule: + - cron: "0 12 * * *" +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: pip install -r requirements.txt -r dev-requirements.txt + - name: Test && Publish + uses: paambaati/codeclimate-action@v2.7.4 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} + with: + coverageCommand: coverage run -m pytest && coverage run -a ./update.py --release