Skip to content

Commit

Permalink
Improve CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
staadecker committed Mar 27, 2024
1 parent 5f21ec7 commit d69b740
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,14 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.10
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.7'
- name: Install dependencies
run: pip install .
- name: Run ATS
uses: codecov/codecov-ats@v0
env:
CODECOV_STATIC_TOKEN: ${{ secrets.CODECOV_STATIC_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: pip install .[dev]
- name: Run tests and collect coverage
run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }}
run: pytest --cov=src/pyoframe
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ build
.venv
.pytest_cache
*.egg-info
tmp
tmp
.coverage
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Pyoframe

[![codecov](https://codecov.io/gh/staadecker/pyoframe/graph/badge.svg?token=8258XESRYQ)](https://codecov.io/gh/staadecker/pyoframe)

A library to rapidly formulate large optimization models using Pandas or Polars dataframes.

## Acknowledgments
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dev = [
"isort",
"pip-tools",
"pytest",
"pytest-cov",
"pre-commit",
"gurobipy",
]
Expand Down

0 comments on commit d69b740

Please sign in to comment.