williamhunter / topy

Topology Optimization using Python
Other
481 stars 130 forks source link

Add GitHub actions #49

Closed mlaradji closed 4 years ago

mlaradji commented 4 years ago

This pull request is a follow up to my comment in https://github.com/williamhunter/topy/pull/47#issuecomment-589440651; it adds a tests module and automates testing of new pull requests and new pushes to master. It also automates publishing to PyPI when a new release is created.

Notes

Changelog

Added

williamhunter commented 4 years ago

That is just awesome, thanks. So happy that people are improving and extending ToPy.

On Sun, 23 Feb 2020, 20:00 Mohamed Laradji, notifications@github.com wrote:

Changelog Added

  • Add pytest module that tests all examples in the examples/ directory.
  • Add GitHub action to trigger pytest on pull request and push to master.
  • Add GitHub action to upload package to PyPI on release.
  • Add conda.yml to quickly install ToPy dependencies.

Fixed

  • Use 'Agg' backend in matplotlib if no display was detected.

Refactored

  • Use setuptools instead of distutils for setup.
  • Use python3 compatible code in various functions.
  • Rename CHANGES.md to CHANGELOG.md.

You can view, comment on, or merge this pull request online at:

https://github.com/williamhunter/topy/pull/49 Commit Summary

  • dev: ignore vscode and mypy files
  • pip: change version number to 0.4.0
  • Revert "Apply pep8 codestyle"
  • refactor: log messages to stdout with level DEBUG; add python3 support
  • Create pythonpackage.yml
  • feat(tests): use pytest
  • feat(tests): use conda tests/spec-list.txt
  • fix(tests): fix conda install command
  • refactor(setup): use setuptools
  • refactor(setup): remove distutils
  • fix(workflow): change topy install command
  • fix(setup): require python ~=2.7; add pip dependencies
  • fix(workflow/pythonpackage): install topy without deps (use conda for deps)
  • fix(workflow/pythonpackage): activate environment
  • fix(workflow/pythonpackage): remove step
  • Create pythonpublish.yml
  • fix(pytest): use 'Agg' backend in matplotlib if no display was detected
  • test(pythonpublish): use TestPyPi for now
  • refactor(setup): add version parameter
  • Merge branch 'master' of https://github.com/williamhunter/topy into williamhunter-master
  • Merge branch 'williamhunter-master'
  • refactor(setup): use a metadata.json file
  • tests: test on release
  • tests: test on push rather than release
  • Update README.md
  • refactor: add changes to CHANGELOG
  • Update README.md

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/williamhunter/topy/pull/49?email_source=notifications&email_token=ADMS2UPDBCRDJG3CPWEJTSDREK2T3A5CNFSM4KZ4P4J2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPSMMYA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMS2UP6HX4XQH4EOFGB3WTREK2T3ANCNFSM4KZ4P4JQ .

mlaradji commented 4 years ago

@williamhunter No problem! This is a really cool project that's being used by other awesome projects like CADO. CADO optimizes CAD files through ToPy (CAD file->TPD file->ToPy optimize->ASCII VTK file->CAD file).