Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujiem committed Sep 5, 2023
1 parent c82e548 commit f4a5c1d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
path:
- 'logparser/*'
- 'tests/*'
pull_request:
path:
- 'logparser/*'
- 'tests/*'

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 180
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, 3.10]

steps:
- uses: actions/checkout@v3

- name: Setup python environment
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install -q deap==1.4.1
pip install -q regex==2022.3.2
pip install -e .
- name: Run test
timeout-minutes: 180
run: |
cd tests
bash test_all.sh
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<a href="https://pypi.org/project/logparser3"><img src="https://img.shields.io/pypi/v/logparser3.svg" style="max-width: 100%;" alt="Pypi version"></a>
<a href="https://pepy.tech/project/logparser3"><img src="https://static.pepy.tech/badge/logparser3" style="max-width: 100%;" alt="Downloads"></a>
<a href="https://github.com/logpai/logparser/blob/main/LICENSE"><img src="https://img.shields.io/github/license/logpai/logparser.svg" style="max-width: 100%;" alt="License"></a>
<a href="https://github.com/logpai/logparser#discussion"><img src="https://img.shields.io/badge/chat-wechat-brightgreen?style=flat" style="max-width: 100%;" alt="License"></a>
</div>
<hr/>

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
version="1.0.0",
author="logpai",
author_email="logpai@users.noreply.github.com",
description="A machine learning toolkit for log parsing",
description="A machine learning toolkit for log parsing from LOGPAI",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/logpai/logparser",
Expand Down

0 comments on commit f4a5c1d

Please sign in to comment.