Skip to content

Commit

Permalink
Merge pull request #9 from Julian-Hochhaus/Julian-Hochhaus-patch-1
Browse files Browse the repository at this point in the history
Create main.yml
  • Loading branch information
Julian-Hochhaus authored Feb 20, 2024
2 parents 7f271bd + a118b20 commit e62f0b6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: API workflow

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: Test python API
steps:
- uses: actions/checkout@v1
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests and collect coverage
run: pytest --cov .
- name: Upload coverage reports to Codecov
run: |
# Replace `linux` below with the appropriate OS
# Options are `alpine`, `linux`, `macos`, `windows`
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ numpy>=1.19
lmfit>=1.1.0
matplotlib>=3.6
pytest

pytest-cov

0 comments on commit e62f0b6

Please sign in to comment.