Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…cripts'

Merges #138
Closes #138
  • Loading branch information
sduenas committed Jan 25, 2021
2 parents f806abb + 7b38b4e commit 77b97b8
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 35 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,76 @@
name: build

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
services:
# How to use MySQL
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

name: Python ${{ matrix.python-version }} for ES ${{ matrix.elasticsearch-version }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
elasticsearch-version: [6.1.0]

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Runs Elasticsearch ${{ matrix.elasticsearch-version }}
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: ${{ matrix.elasticsearch-version }}

- name: Install dependencies
run: |
pip install --upgrade pip==18.1
pip install --upgrade setuptools==49.6.0
pip install --upgrade wheel
pip install -r "requirements.txt"
pip install PyMySql
pip install flake8 coveralls
- name: Verify MySQL connection
run: |
sudo apt-get install -y mysql-client libmysqlclient-dev
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot -e "SHOW GRANTS FOR 'root'@'localhost'"
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot mysql
- name: Verify Elasticsearch connection
run: |
curl -fsSL "http://localhost:9200/_cat/health?h=status"
- name: Lint with flake8
run: flake8 . --exclude ./src

- name: Tests and Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mysqladmin --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot create test_sh
cd tests
coverage run --include=*manuscripts/manuscripts* run_tests.py
# --service=github is a workaround for bug
# https://github.com/coveralls-clients/coveralls-python/issues/251
coveralls --service=github
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# GrimoireLab Manuscripts [![Build Status](https://travis-ci.org/chaoss/grimoirelab-manuscripts.svg?branch=master)](https://travis-ci.org/chaoss/grimoirelab-manuscripts) [![Coverage Status](https://coveralls.io/repos/github/chaoss/grimoirelab-manuscripts/badge.svg?branch=master)](https://coveralls.io/github/chaoss/grimoirelab-manuscripts?branch=master)
# GrimoireLab Manuscripts [![Build Status](https://github.com/chaoss/grimoirelab-manuscripts/workflows/build/badge.svg)](https://github.com/chaoss/grimoirelab-manuscripts/actions?query=workflow:build+branch:master+event:push) [![Coverage Status](https://coveralls.io/repos/github/chaoss/grimoirelab-manuscripts/badge.svg?branch=master)](https://coveralls.io/github/chaoss/grimoirelab-manuscripts?branch=master)

The aim of this project is the automatic generation of reports from the enriched indexes with items from perceval data sources (git commits, github pull requests, bugzilla bugs ...) enriched using GrimoireELK.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -77,7 +77,7 @@ def files_in_subdir(dir, subdir):
package_data={'': template_files},
# package_data={'': ['latex_template/report.tex']},
install_requires=[
'matplotlib',
'matplotlib==2.0.2',
'prettyplotlib',
'elasticsearch-dsl',
'grimoire-elk>=0.30.4',
Expand Down

0 comments on commit 77b97b8

Please sign in to comment.