Unverified Commit 599c819b authored by Yossi Gottlieb's avatar Yossi Gottlieb Committed by GitHub
Browse files

Some CI cleanups/improvements. (#63)

* Add a daily job.
* Pin Python 3.9 due to CFFI issues.
* Add codecov.
parent a02be774
......@@ -3,7 +3,7 @@ name: CI
on: [push, pull_request]
jobs:
build-ubuntu:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
......@@ -12,7 +12,7 @@ jobs:
- name: Set up Python for testing
uses: actions/setup-python@v1
with:
python-version: '3.x'
python-version: '3.9'
architecture: 'x64'
- name: Install Python dependencies
run:
......@@ -20,3 +20,17 @@ jobs:
- name: Run tests
run:
make tests_full
- name: Set up codecov
run: |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
- name: Upload data to codecov
env:
HAS_CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN != '' }}
if: env.HAS_CODECOV_TOKEN == 'true'
run: ./codecov -t ${CODECOV_TOKEN}
name: Daily
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
run-tests:
if: github.repository == 'redislabs/raft'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make
run: make
- name: Set up Python for testing
uses: actions/setup-python@v1
with:
python-version: '3.9'
architecture: 'x64'
- name: Install Python dependencies
run:
python -m pip install -r tests/requirements.txt
- name: Run tests
run:
make tests_full
- name: Set up codecov
run: |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
- name: Upload data to codecov
env:
HAS_CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN != '' }}
if: env.HAS_CODECOV_TOKEN == 'true'
run: ./codecov -t ${CODECOV_TOKEN}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment