-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 912 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches:
- master
tags:
- '**'
pull_request: {}
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
steps:
- uses: actions/checkout@v4
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: install dependencies
run: |
make install
pip freeze
- name: lint
run: make lint
- name: test
run: make test
- name: codecov
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: '422d47c0-a480-4e77-a099-2d7a7a5d4ea2'
deploy:
needs:
- test
if: "success() && startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
steps:
- run: curl ${{ secrets.RENDER_DEPLOY_HOOK_URL }}