Skip to content

Commit

Permalink
Merge pull request #260 from rl-institut/dev
Browse files Browse the repository at this point in the history
Version 0.3.0
  • Loading branch information
b-r-u authored Apr 8, 2021
2 parents ce19906 + b59b73d commit 3d2ee96
Show file tree
Hide file tree
Showing 161 changed files with 1,116,664 additions and 3,348 deletions.
3 changes: 1 addition & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[flake8]
exclude = meta/migrations/
max-line-length=100
max-line-length=100
40 changes: 40 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Python package

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install pip
run: |
python -m pip install --upgrade pip
- name: Lint with flake8
run: |
pip install flake8
flake8 smooth tests doc/source *.py
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install coinor-cbc
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest
pytest tests
- name: Build documentation
run: |
pip install -r doc/requirements.txt
make -C doc html
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.idea*
test/*
*.png
build/*
doc/build
dist/*
*.pickle
*.egg-info
*.lp
.*.sw[op]
__pycache__
Loading

0 comments on commit 3d2ee96

Please sign in to comment.