Skip to content

Commit

Permalink
Merge pull request #13 from simon-hirsch/testing_ci
Browse files Browse the repository at this point in the history
Implement automated testing on main
  • Loading branch information
simon-hirsch authored Jul 25, 2024
2 parents decf44b + 759caff commit 5ddd311
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: Build Docs
on:
push:
branches:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/ci_run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Automated Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements_tests.txt ]; then pip install -r requirements_tests.txt; fi
- name: Build package
run: python -m build --wheel
- name: Install Package
run: pip install dist/*
- name: Run tests with pytest
run: pytest tests
5 changes: 5 additions & 0 deletions requirements_tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
numpy>1.26.0, <2.0.0
numba>0.59, <1.0.0
scipy
scikit-learn
build

0 comments on commit 5ddd311

Please sign in to comment.