File tree Expand file tree Collapse file tree 5 files changed +59
-29
lines changed Expand file tree Collapse file tree 5 files changed +59
-29
lines changed Original file line number Diff line number Diff line change
1
+ name : CD
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ cd :
10
+ runs-on : ubuntu-18.04
11
+
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Setup Python
17
+ uses : actions/setup-python@v2
18
+ with :
19
+ python-version : ' 3.6'
20
+
21
+ - name : Install dependencies
22
+ run : pip install -r requirements.txt
23
+
24
+ - name : Generate benchmark
25
+ run : mkdir -p ./html && python -u -m benchmarks --display_format=html "$EMAILS_ZIP_URL" | tee ./html/index.html
26
+ env :
27
+ EMAILS_ZIP_URL : ${{ secrets.EMAILS_ZIP_URL }}
28
+
29
+ - name : Deploy report
30
+ uses : peaceiris/actions-gh-pages@v3
31
+ with :
32
+ github_token : ${{ secrets.GITHUB_TOKEN }}
33
+ publish_dir : ./html
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ types :
6
+ - opened
7
+ - reopened
8
+ - synchronize
9
+
10
+ jobs :
11
+ ci :
12
+ runs-on : ubuntu-18.04
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - uses : actions/setup-python@v2
17
+ with :
18
+ python-version : ' 3.6'
19
+ - run : pip install -r requirements.txt -r requirements-dev.txt
20
+ - run : flake8 benchmarks
21
+ - run : isort --check-only benchmarks
22
+ - run : python -m benchmarks.tests
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ Benchmarks for the Lokole [email data exchange protocol](https://github.com/asco
8
8
9
9
## Setup
10
10
11
- Install the requirements with ` pip install -r requirements.txt ` .
11
+ Install the requirements with ` pip install -r requirements.txt -r requirements-dev.txt ` .
12
12
13
13
Run the tests with ` python3 -m benchmarks.tests ` and run the linter with ` flake8 benchmarks ` .
14
14
15
15
Run the benchmarks via ` python3 -u -m benchmarks <emails-zip-url> ` .
16
16
17
17
## Results
18
18
19
- Benchmark results are kept up to date by Travis at [ ascoderu/compression-benchmarks] ( https://ascoderu.ca/compression-benchmarks/ ) .
19
+ Benchmark results are kept up to date by Github Actions at [ ascoderu/compression-benchmarks] ( https://ascoderu.ca/compression-benchmarks/ ) .
Original file line number Diff line number Diff line change
1
+ flake8
2
+ isort
You can’t perform that action at this time.
0 commit comments