Skip to content

Commit

Permalink
Add github actions: test and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jules-samaran committed Feb 26, 2024
1 parent 576e622 commit 27b6395
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

permissions:
contents: read

env:
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL: True

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest coverage
pip install .[full]
- name: Test with pytest
run: |
coverage run --source=scconfluence -m pytest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 27b6395

Please sign in to comment.