Closed mlaradji closed 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
- A .github/workflows/pypipublish.yml https://github.com/williamhunter/topy/pull/49/files#diff-0 (26)
- A .github/workflows/pytest.yml https://github.com/williamhunter/topy/pull/49/files#diff-1 (33)
- A CHANGELOG.md https://github.com/williamhunter/topy/pull/49/files#diff-2 (46)
- D CHANGES.md https://github.com/williamhunter/topy/pull/49/files#diff-3 (28)
- M README.md https://github.com/williamhunter/topy/pull/49/files#diff-4 (2)
- A conda.yml https://github.com/williamhunter/topy/pull/49/files#diff-5 (78)
- D examples/mbb_beam/optimise.py https://github.com/williamhunter/topy/pull/49/files#diff-6 (21)
- A metadata.json https://github.com/williamhunter/topy/pull/49/files#diff-7 (8)
- A setup.py https://github.com/williamhunter/topy/pull/49/files#diff-8 (31)
- A tests/test_examples.py https://github.com/williamhunter/topy/pull/49/files#diff-9 (26)
- M topy/optimisation.py https://github.com/williamhunter/topy/pull/49/files#diff-10 (2)
- D topy/setup.py https://github.com/williamhunter/topy/pull/49/files#diff-11 (17)
- M topy/visualisation.py https://github.com/williamhunter/topy/pull/49/files#diff-12 (13)
Patch Links:
- https://github.com/williamhunter/topy/pull/49.patch
- https://github.com/williamhunter/topy/pull/49.diff
— 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 .
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 tomaster
. It also automates publishing to PyPI when a new release is created.Notes
topology-optimization
inmetadata.json
, astopy
in PyPI is another project.pytest
action should take about 300 minutes to complete (it goes through all examples inexamples/
.Changelog
Added
pytest-benchmark
fixture topytest
, and a corresponding action. The time taken for each example (ran only once to save time) is recorded for each commit, and compared with the previous run.pytest
module that tests all examples in theexamples/
directory.pytest
on pull request and push tomaster
.conda.yml
to quickly installToPy
dependencies. This is the best way I found to install PySparse; installing throughpip
always fails for me due to some build errors.Fixed
'Agg'
backend in matplotlib if no display was detected. This is necessary for thepytest
to be able to run successfully.Refactored
setuptools
instead ofdistutils
for setup.python3
compatible code in various functions.CHANGES.md
toCHANGELOG.md
.