Commit graph

72 commits

Author SHA1 Message Date
Jonathan Wren
bd590213a1
Stop hardcoding bot info in some pipelines (#1506) 2022-06-18 11:53:20 -07:00
Jonathan Wren
fe2b976849
update cache for accessibility tests (to match other tests) (#1505) 2022-06-18 11:51:51 -07:00
Jonathan Wren
51ab747019
Replace make with python alternative (poe) (#1503)
* Get rid of `make` in favor of `poe`

This moves the tasks that were previously in Makefile, into
pyproject.toml (with all the other config)

This is also more inclusive of Windows developers since they only need
Python, and no longer have to install make separately.

* udpate docs

* don't make code blocks also links
2022-06-18 11:36:56 -07:00
Jonathan Wren
f5e052937c
Update copyright year (#1502)
Update copyright year in comment headers and --version output
2022-06-18 11:30:56 -07:00
Micah Jerome Ellison
86bc9bfd80
Add Python 3.11 to PR tests (#1500)
* Add Python 3.11 to PR tests
* Add testing_prs to trigger for testing PRs
2022-06-11 14:06:02 -07:00
Micah Jerome Ellison
117e0de5bc
Drop support for Python 3.7 and 3.8 (#1412)
* Remove Python 3.7 and 3.8 from github actions workflows

* Update lockfile after running poetry update a couple times

* Update poetry lock

* Remove Python 3.7 and 3.8 from pyproject.toml and run poetry lock
2022-02-12 14:07:56 -08:00
Jonathan Wren
e7f24527c3
Fix styling on documentation sidebar (#1395)
* fix sidebar stling in docs theme

* don't display heading levels higher than 3 in sidebar

* update sitemap step for easier debugging

* add matrix so github doesn't get confused
2022-01-08 14:51:02 -08:00
Micah Jerome Ellison
3b0c7992d2
Add weekly Saturday morning build and prevent Python 3.11 from running on PRs (#1387)
* Add weekly Saturday morning build and prevent Python 3.11 from running on PRs
* Fix extraneous greater than symbol
* Add branches and paths to cron schedule
* Add back missing hyphen before cron
* Trying to fix YAML syntax error
* Remove branches and paths from schedule
* Fix invalid conditional, push 3.11 check down to actual tests like we did with 3.10
* Separate out PR tests and scheduled tests
* Fix YAML syntax
* Fix uses action reference
* Use proper action folder structure
* Check out repo before running local action
* Specify bash shell and remove unneeded if
* Specify shell for each run statement
* Move secret out of composite action since it is not supported directly
* Fix half-fixed previous commit
* Remove extraneous ./
* Fix pathing and name steps
* take out shell key from action
* put back missing git config line in workflows

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
2022-01-08 12:36:58 -08:00
Micah Jerome Ellison
5e45f305ac
Use full Python version for GitHub Actions cache key (#1373) 2021-11-13 14:52:42 -08:00
Micah Jerome Ellison
06ee6db7e7
Use Python 3.10 stable in CI (#1362)
* Remove special case code needed for Python 3.10 pre-release and try to get Python 3.11 pre-release running on CI
* Wrap 3.10 in quotes so it doesn't resolve to 3.1
* Remove pflake --version call that is crashing in Python 3.11-dev
* Run poetry update and restore removed flake8 line
2021-11-06 14:18:00 -07:00
Jonathan Wren
44edb9bdee
Add more steps to pytest, fully remove behave (#1347)
* update yaml loader to new method

* Add config overrides steps to pytest

This requires some patching around the config object, which now happens
in every test.

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>

* udpate docs for new tests

* remove behave from deps

* remove feature dir from flake8 checks

* udpate lock file

* disable pip version check (it keeps spamming the pipeline)

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2021-10-09 12:10:08 -07:00
Micah Jerome Ellison
4c0fb344d1
Add CACHE_STRING secret to bust GitHub Actions python cache (#1344)
* Add CACHE_STRING secret to allow maintainers to bust cache without a commit

* Quick change

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
2021-09-25 11:11:28 -07:00
Jonathan Wren
08350b884b
take out redundant lines from PR template (#1327) 2021-08-21 14:00:31 -07:00
Micah Jerome Ellison
a0a3ef669e
Set bash as default shell (#1324) 2021-08-21 12:08:44 -07:00
Jonathan Wren
8a64b77e63
Update build to poetry alpha 2 for python 3.10 (#1320)
* udpate build to poetry alpha 2 for python 3.10

* update testing workflow to run when workflow itself is changed
2021-08-16 19:46:01 -07:00
Micah Jerome Ellison
2723e1cfb5
Add Python 3.10 support (#1271)
* Add Python 3.10 support

* Change Python 3.10 to 3.10-dev in CI

* Run poetry update

* Turn off fail-fast to troubleshoot

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>

* Add continue-on-error for 3.10

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>

* use prerelease poetry for prerelease python

* fix syntax error

* rename steps to make more sense

* remove dev dependency that breaks with python 3.10

* update tests

* Change test dependencies for minimal breakage on python 3.10

- loosen the test dep requirements (so we get warned about these
  problems sooner)
- add new extras group to provide minimal deps required for testing (we
  don't need to run static analysis again on every version)

* change how we check if deps are installed so test don't run wild

* add setuptools due to poetry bug, clean up other steps

* update lock file

* test

* Revert "test"

This reverts commit 31e538300e.

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
2021-07-10 12:13:15 -07:00
Micah Jerome Ellison
54e5e96ad2 Force GitHub Actions to preserve line endings
Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
2021-07-03 15:49:18 -07:00
Jonathan Wren
6b096761e0 Re-enable test for windows on python 3.9
Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2021-07-03 15:49:18 -07:00
Jonathan Wren
305127137a
Remove --version from brew release workflow (#1233)
Homebrew doesn't like explicitly declaring a version for a formula (it
prefers to infer it from the url), and will throw an error on PRs. So,
this removes that part of the workflow.
2021-04-24 11:27:32 -07:00
Jonathan Wren
09bcfa2242
Update brew tap for release pipeline
This was left out of a previous commit.

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2021-03-27 13:11:45 -07:00
Jonathan Wren
e116a95e34
Change PR steps for brew release
The hub cli tool wasn't working anymore, so we took it out.

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2021-03-27 12:32:31 -07:00
Jonathan Wren
7bacf4a5f0
Changelog generator fixes
There were several problems that this fixes:
- shallow fetch broke merging to release branch
- bad changelog was only outputting error msg (not exiting)
- latest version being on first line deleted itself and broke the
  changelog updates

This also has manual fixes to the changelog to bring it up to date.

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2021-03-13 13:22:16 -08:00
Micah Jerome Ellison
df151d4dbc Add --local flag in git config calls 2021-03-06 14:05:48 -08:00
Micah Jerome Ellison
6639546413 Remove global flag from git config 2021-03-06 14:01:03 -08:00
Micah Jerome Ellison
06e5b4baf6
Fix broken brew release process (#1211)
* Add homebrew symlink for releases
* Fix indentation problem
* Fix bad env var name
* Change filename to formula name
* Fix formula name
* Attempt tap instead of symlink
* Fix formula repo referece
* add tracer
* Attempt working directory fix
* Remove --unshallow
* Use token for remote
* Move set tap directory step
* Remove tracer
* Clean up spacing and wrap quotes to tap directory
2021-03-06 13:47:11 -08:00
Micah Jerome Ellison
dc776b171a
Fix case on documentation tag in issue template 2021-02-06 14:10:21 -08:00
Jonathan Wren
f80f033d5d
fix typos 2021-01-17 11:22:02 -08:00
Jonathan Wren
c06b5cf297
Fix homebrew release, add options for relase pipeline (#1154) 2021-01-16 17:40:09 -08:00
Jonathan Wren
f041402533
Add packaging label to included sections in changelog (#1140) 2021-01-02 14:53:54 -08:00
Jonathan Wren
d4ca29ed2c
Fix broken search bar in docs site (#1135)
* Fixes for search on docs site

We previously didn't include the search results page in our CI testing,
so we missed some issues on that page. This ensures that page is part of
regular testing, and also includes fixes for the issues present.

* fix sidebar contrast
2021-01-02 12:24:21 -08:00
Jonathan Wren
f8513d3859
Add packaging label to changelog generator config (#1132)
We added dependabot and told it to use a new packaging label. This
change gives that label its own separate section in the changelog.
2020-12-26 13:08:39 -08:00
dependabot-preview[bot]
8b70497802
Create Dependabot config file (#1131)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-26 11:59:53 -08:00
Jonathan Wren
37c5b0eb11
Fixes to changelog generator (#1127)
* Fix version header detection in changelog

This updates the regex to find the version header in our changelog.
There was a bug that affected patch, alpha, and beta versions. For
example, if we were looking for "v2.5" we might find "v2.5.1" or
"v2.5.1-alpha" or other versions like that.

This led to the changelog not being cleared properly on update, and old
versions sticking around longer than they should.

* re-add option to include author link for merged PRs in changelog

This option was accidentally left out when migrating the changelog
generator tool to github actions.

* fix conditional in changelog workflow

In github actions, booleans always end up as strings. So, it's not
enough to test `env.FULL_RELEASE` because both 'true' and 'false' will
evaluate as true. This fixes the conditional to check for the string
value 'true' instead of relying on a boolean.
2020-12-26 10:58:23 -08:00
Jonathan Wren
e1cbce8a08
add more debug data to changelog workflow, update changelog 2020-12-19 22:28:26 -08:00
Jonathan Wren
68cf2d773d
do additional check for json data, and retry for 5-ish minutes on failure (#1125) 2020-12-19 22:28:25 -08:00
Jonathan Wren
2e9e857b7b
standardize version regex in release pipeline (#1124) 2020-12-19 22:28:24 -08:00
Micah Jerome Ellison
9fe56b9e10
Comply with GPL by acknowledging all authors and including license info in each source file (#1121)
* Update authors to "jrnl contributors" to comply with GPL3
* Include jrnl email address with contributors
* Include GPL notice in jrnl --version
* Apply consistent copyright and license to all Python files
* Add copyright and license to documentation
* Add copyright and license to docs theme
* Wiping poetry cache to try to resolve a test issue
* Testing with Python 3.9.0 in attempt to bypass GitHub Actions failure in 3.9.1
* make format
* Exclude Windows Python 3.9 build which is failing due to a GitHub Actions problem
* Modify testing to get around this 3.9 issue...
* Fix exclude
2020-12-19 22:28:22 -08:00
Jonathan Wren
4adbe5e29a
Add automatic deployment for homebrew releases (and prereleases) (#1111)
This new job will submit a PR to the relevant upstream repo as part of
the release workflow.

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2020-12-19 12:31:15 -08:00
Jonathan Wren
243ccd9e37
Fix trigger for changelog (#1114)
The changelog was triggering after each branch create on a repo. That
doesn't happen often on the main repo, but does happen often on
contributor forks. This should stop the rampant GH actions.
2020-12-19 12:04:11 -08:00
Jonathan Wren
12e39ffd61
Change approach for docs workflow to use pa11y-ci (#1116)
The previous plugin looked nice with the comments and annotations, but
apparently doesn't work for PRs. It can only run on the pr target (our
branch), which means that the tests are never actually run against the
new code.

As you can guess, this is pretty useless for PRs. So, this PR fixes
that, and uses the very nice pa11y-ci (instead of the normal pa11y).
While it doesn't upload annotations, the output is very readable and
seems like the best we're going to get.
2020-12-19 12:00:59 -08:00
Jonathan Wren
eddf37a1b5
Fix readme links (#1109)
* fix links to docs now that we use readthedocs

* fix badge links in readme
2020-12-12 12:41:49 -08:00
Jonathan Wren
558d331d66
Make docs site (jrnl.sh) fully meet Web Content Accessibility Guidelines (WCAG) 2.1 (#1105)
* add some attribtutes to docs template for accessbility

* fix colors to meet accessibility guidelines (4.5 contrast ratio for text)

* Fix last remaining pa11y error (no button on search form)

This fix required moving the mkdocs theme out of the docs directory.
It's no in the docs_theme directory, and the mkdocs config is updated
accordingly.

* Re-enable accessibility testing for docs sit

Also, move the pa11y script into the gh actions workflow

* clean up linting issues in css

* fix and standardize link colors across site

* fix twitter button opacity making text fail contrast requirements

* move buttons on docs site index nav, tweak font weights

* fix footer opacity, tweak spacing of the now more visible sections of the page

* change font sizes on index page to meet WCAG

* udpate font sizes site-wide for accessibility

* fix sidebar for accessibility (font sizes and color contrasts)

* restyle code blocks to have dark background, and meet accessibility requirements

* standardize (accessible) colors across docs site
2020-12-12 12:05:12 -08:00
Micah Jerome Ellison
42c222a6c8
Update bug_report.md
Fix commented out text appearing in comments
2020-12-12 11:54:20 -08:00
Jonathan Wren
c3a8453e94
remove http-basic config for poetry (shouldn't be used anymore) 2020-11-28 14:40:54 -08:00
Jonathan Wren
45f051f51a
Add fix for changelog conditional always returning false (#1101) 2020-11-28 13:21:16 -08:00
Jonathan Wren
4cad215560
Add a release workflow for PyPI in CI (Github Actions) (#1095)
* Fixes for new CI pipeline (Github Actions)

- Support ci skip tag on commits to avoid build dupes
- Add smarter path detection so we don't spam tons of tests
- Allow steps to cancel if previous steps were cancelled (don't always
  run)
- Separate workflows to be more modular
- Update release workflow to do a few more things
- Add helpful messages
- Be more strict in version checking (now with added regex)
- Make changelog smarter about when to trigger
- Add some functionality for changelog to handle releases and
  prereleases separately
- Better error handling
- Split up the version validation and the release to make way for more
  releases

* add step in workflow to merge to release branch after a release

* add check for git diff so commit doesn't error out constantly
2020-11-28 11:50:13 -08:00
Jonathan Wren
6da3b6dc01
stop changelog update from triggering subsequent ci builds 2020-11-21 16:04:26 -08:00
Jonathan Wren
f07774e351
update changelog generator setting to include PRs, and use bot's token 2020-11-21 15:51:10 -08:00
Jonathan Wren
d68b9e1ca1
More changelog fixes (#1092)
* add bot token since gh actions doesn't allow pushing to protected branch
* add a max for issues, since we keep getting rate limited
* add jrnl bot username to commit step
* change token for git repo
2020-11-21 15:11:58 -08:00
Jonathan Wren
142e6f597e
Changelog fixes (#1088)
* typo fix

* clean up changelog to match version tags
2020-11-21 11:47:30 -08:00