squeaknode/.github/workflows/ci.yml
Jonathan Zernik e641024eba
Format github action (#1968)
* Format github action

* Split github action into separate workflows
2022-02-27 00:40:14 -08:00

40 lines
798 B
YAML

name: CI
on:
schedule:
- cron: '0 10 * * *' # everyday at 10am
push:
branches:
- '**'
tags:
- 'v*.*.*'
pull_request:
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Run tests and collect coverage
run: |
make test
coverage xml
- name: Coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos