openego / eTraGo

Optimization of flexibility options for transmission grids based on PyPSA
GNU Affero General Public License v3.0
32 stars 13 forks source link

Add a GitHub workflow with basic build checks #574

Closed gnn closed 1 year ago

gnn commented 1 year ago

Currently it only checks whether the package can be build without errors and whether files that had black, flake8 and isort issued fixed did not regress. But it's really easy to add other checks, like e.g. unit tests. The most important change here is that when you fix black, flake8 and isort issues for a file, you can add it to the list of cleaned files in the check function in "noxfile.py" and the GitHub actions will make sure that it stays that way.