Skip to content

Commit

Permalink
Merge pull request #496 from Menci/0.2.x
Browse files Browse the repository at this point in the history
Add github actions ci
  • Loading branch information
chenyushuo authored Nov 11, 2020
2 parents e9bf077 + 5f878d8 commit ddc8590
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python package

on:
- push
# - pull_request

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Use "python -m pytest" instead of "pytest" to fix imports
- name: Test metrics
run: |
python -m pytest tests/metrics
- name: Test evaluation_setting
run: |
python -m pytest tests/evaluation_setting

0 comments on commit ddc8590

Please sign in to comment.