Skip to content

Commit

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

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

jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.13, 3.11]

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
2 changes: 2 additions & 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 Expand Up @@ -59,6 +60,7 @@ In particular, the package depends on the following requirements.
+ numpy
+ pandas
+ scipy
+ scikit-learn
+ deap (if using logparser.MoLFI)
+ gcc (if using logparser.SLCT)

Expand Down
1 change: 1 addition & 0 deletions logparser/LenMa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The code has been tested in the following enviornment:
+ pandas 1.0.1
+ numpy 1.18.1
+ scipy 1.4.1
+ sklearn 0.22.1

Run the following scripts to start the demo:

Expand Down
3 changes: 2 additions & 1 deletion logparser/LenMa/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pandas
regex==2022.3.2
numpy
scipy
scipy
scikit-learn
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ regex==2022.3.2
numpy
pandas
scipy
scikit-learn
tqdm
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
3 changes: 1 addition & 2 deletions tests/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ echo "=== Testing MoLFI ===" && cd $home/MoLFI && python demo.py && \
echo "=== Testing SHISO ===" && cd $home/SHISO && python demo.py && \
echo "=== Testing SLCT ===" && cd $home/SLCT && python demo.py && \
echo "=== Testing Spell ===" && cd $home/Spell && python demo.py && \
echo "=== Testing logmatch ===" && cd $home/logmatch && python demo.py

echo "=== Testing logmatch ===" && cd $home/logmatch && python demo.py &&\
echo "All tests succeed!"

0 comments on commit 97a8c30

Please sign in to comment.