Skip to content

Commit

Permalink
Added Github actions CI
Browse files Browse the repository at this point in the history
Added Github actions CI
  • Loading branch information
kstone40 authored Aug 7, 2024
2 parents 7be24b4 + 637dcfb commit 1adf47b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: Pytest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install requirements
run: pip install obsidian-apo[dev]
- name: Run tests and collect coverage
run: pytest --cov=.
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions obsidian/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 1 addition & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
markers =
fast
slow
addopts = --cov=obsidian --cov-branch --cov-report html:logs/pytestCovReport -ra

filterwarnings =
ignore::botorch.exceptions.warnings.NumericsWarning
Expand All @@ -11,4 +10,4 @@ filterwarnings =
ignore::botorch.exceptions.warnings.OptimizationWarning
ignore::linear_operator.utils.warnings.NumericalWarning
ignore::gpytorch.utils.warnings.GPInputWarning
ignore::UserWarning
ignore::UserWarning

0 comments on commit 1adf47b

Please sign in to comment.