Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CD

on:
push:
branches:
- master

jobs:
cd:
runs-on: ubuntu-18.04

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.6'

- name: Install dependencies
run: pip install -r requirements.txt

- name: Generate benchmark
run: mkdir -p ./html && python -u -m benchmarks --display_format=html "$EMAILS_ZIP_URL" | tee ./html/index.html
env:
EMAILS_ZIP_URL: ${{ secrets.EMAILS_ZIP_URL }}

- name: Deploy report
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
ci:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.6'
- run: pip install -r requirements.txt -r requirements-dev.txt
- run: flake8 benchmarks
- run: isort --check-only benchmarks
- run: python -m benchmarks.tests
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Benchmarks for the Lokole [email data exchange protocol](https://github.com/asco

## Setup

Install the requirements with `pip install -r requirements.txt`.
Install the requirements with `pip install -r requirements.txt -r requirements-dev.txt`.

Run the tests with `python3 -m benchmarks.tests` and run the linter with `flake8 benchmarks`.

Run the benchmarks via `python3 -u -m benchmarks <emails-zip-url>`.

## Results

Benchmark results are kept up to date by Travis at [ascoderu/compression-benchmarks](https://ascoderu.ca/compression-benchmarks/).
Benchmark results are kept up to date by Github Actions at [ascoderu/compression-benchmarks](https://ascoderu.ca/compression-benchmarks/).
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
flake8
isort