Commit Graph

29 Commits

Author SHA1 Message Date
Oz N Tiram e5d08fb85f Limit resource usage in CI (#5079)
Fix #5073
2022-04-23 22:42:47 -04:00
Matt Davis 8d5db1a47d second time this has prevented fixing the Changelog.rst after a failed lint 2022-04-20 22:43:31 -04:00
Oz N Tiram 891486e180 CI improvements (#5061)
* Add step to vendor dependencies in the Makefile

* Reorganize the order of jobs and dependencies

* Make all jobs run only after the lint stage
2022-04-20 08:17:01 -04:00
Matt Davis f3166e673f check point progress on only bringing in pip==22.0.4 (#4966)
* vendor in pip==22.0.4

* updating vendor packaging version

* update pipdeptree to fix pipenv graph with new version of pip.

* Vendoring of pip-shims 0.7.0

* Vendoring of requirementslib 1.6.3

* Update pip index safety restrictions patch for pip==22.0.4

* Update patches

* exclude pyptoject.toml from black to see if that helps.

* Move this part of the hash collection back to the top (like prior implementation) because it affects the outcome of this test now in pip 22.0.4
2022-04-18 23:48:38 -04:00
Matt Davis 5d845dc6b9 Added pytest-cov and addressed outdated references to pip-tools (#5038)
* Add pytest-cov; Remove code references to pip-tools and refactor method _build_package_list

* Regenerate lock file.

* Add back required typing-extensions, not sure how it got dropped from locking previously.

* Adopt the setup.cfg for coverage config.

* Actually pin to the version of click we have vendored in.

* Do not adopt coverage for CI since it slows everything down.  Fix py36 dependency pinning.

* Drop support for 3.6 in this PR.

* No need to exclude the vendor and patched directory from the coverage reprot.
2022-04-14 08:59:27 +02:00
Matt Davis 4f676ac9c8 sphinx formatting change and fix CLI docs (#5032)
* sphinx formatting change.

* minor doc formatting improvements.

* check point progress

* Get the CLI docs generating again.

* Add news item for fixed CLI documentation.

* Dont skip build of docs changes.

* fix linting
2022-04-08 11:36:18 +02:00
Matt Davis 9a3b3ce706 Issue 4993 Add standard pre commit hooks and apply linting. (#4994)
* Add .pre-commit-config.yaml to the project and exclude tests (for now).  This does not include the MyPy linting that pip does but does include everything else.
2022-03-29 23:01:50 -04:00
Frost Ming 21b6a0839f Include py3.6 testing in CI matrix 2021-11-17 11:10:34 +08:00
Frost Ming 4ac5efc3fe add news fragment 2021-11-05 23:22:26 +08:00
Frost Ming 5c7435a071 trigger CI on main branch 2021-11-05 18:01:34 +08:00
Frost Ming 8c00961bfe fix yaml installation 2021-11-05 17:13:42 +08:00
Frost Ming b69e71d3a9 Add CI jobs for packaging and vendoring 2021-11-05 16:42:56 +08:00
Frost Ming e06d9e0287 change a package 2021-11-05 12:43:11 +08:00
Frost Ming 0f9e0d300b Run CI against Python 3.10 2021-11-05 10:12:42 +08:00
Frost Ming 46ea38fcca Isolate environment variables 2021-08-03 10:41:17 +08:00
Frost Ming 72835f142c Fix release workflow 2021-05-29 11:05:47 +08:00
Dulmandakh 2521a480a8 drop python2 from CI 2021-01-28 15:26:48 +08:00
frostming 0394f4de8b remove virtualenv<20 constraint 2020-08-31 09:58:17 +08:00
Shohei Ueda 886526ab14 Switch commit author to GitHub Actions bot
- user.name: 'github-actions[bot]'
- user.email: 'github-actions[bot]@users.noreply.github.com'

cf. https://github.com/peaceiris/actions-gh-pages
2020-06-08 09:30:34 +09:00
Dan Ryan 979cc69dec Switch automated release action to point at production pypi
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 22:07:08 -04:00
Dan Ryan 061f430148 Update CI exclusion rules
- Fix build rules for deployment environment

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 21:59:55 -04:00
Dan Ryan 4e7b6e6093 Fix tag syntax in workflow yaml
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 20:53:36 -04:00
Dan Ryan cac14da5e8 Fix upload task before tagging
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 18:27:46 -04:00
Dan Ryan 60818d7b31 Automate release workflow
- Automatically release when tags are pushed to master
- Release automation will build wheel and sdist + upload to pypi
- Added test pypi as initial target
- Updated version update scripts to help with automatic version
  management

Signed-off-by: Dan Ryan <dan@danryan.co>
2020-04-24 18:01:13 -04:00
Pradyun Gedam d668af0d27 GA: Nicer naming! 2020-04-10 12:16:12 -04:00
Pradyun Gedam 8cf5ee5b2b GA: Don't run on non-master branches 2020-04-10 12:16:11 -04:00
Dan Ryan 520e9be5b0 adjust virtualenv installation order
- Fix azure pipelines script

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:16:10 -04:00
Dan Ryan 5e68bcab8c Allow github tests to finish even if one fails, tweak windows tests
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:15:59 -04:00
Dan Ryan e03878d7c7 Add news entry and fix lockfile
- Drop pytest-tap
- Update azure pipelines config
- Borrow ramdisk configuration from pip
- Fix pyinstaller ref for python 2
- Add 0-minute timeout and add github workflow
- Add skip for pywin32
- Scale down to `-n auto` to reduce race conditions on windows
- Skip pywin32 on python 3.8 as the relevant dependencies aren't
  compatible
- Use default pip exists action = ignore to work around VCS race
  condition
- Create local temp directory to avoid crossing drive letter boundary on
  azure during CI runs
- Monkeypatch click windows console detection to return False in CI

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:14:06 -04:00