Nuclia Evaluation Library v1.0.0 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- nuclia-eval-v0 # Temporary branch to test the CI | |
paths: | |
- 'src/**' | |
- 'tests/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'tests/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: "Test" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: make install | |
- name: Run pre-checks | |
run: make lint | |
- name: Run tests | |
run: make test | |
- name: Get coverage | |
uses: orgoro/[email protected] | |
if: github.event_name == 'pull_request' | |
with: | |
coverageFile: coverage.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
thresholdAll: 0.9 | |
- name: Update Coverage Badge | |
# GitHub actions: default branch variable | |
# Disable as of now to test the action | |
# if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) | |
uses: we-cli/coverage-badge-action@main |