-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dependencies and cleanup GH actions
- Loading branch information
Showing
6 changed files
with
71 additions
and
441 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Tests | ||
|
||
on: push | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
# strategy: | ||
# matrix: | ||
# python-versions: ['3.7', '3.8', '3.9', '3.10'] | ||
|
||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' # caching pip dependencies | ||
|
||
- name: Install syfop and dependencies | ||
run: | | ||
sudo apt-get install graphviz graphviz-dev # for pygraphviz | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[dev,test,extra] | ||
- name: Lint with flake8 | ||
run: flake8 | ||
|
||
- name: Lint with black | ||
run: black --check . | ||
|
||
- name: Run unit tests (except the ones using Gurobi and CPLEX) | ||
shell: bash -l {0} | ||
run: python -m pytest --cov=. --cov-report=lcov -k "not gurobi and not cplex" tests | ||
|
||
- name: Coveralls test coverage | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: coverage.lcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.