Commit Graph
127 Commits
Author SHA1 Message Date
Šarūnas Nejus 7be8f9c97a Update CI config, minimum ruff version, docs and add changelog note 2024-12-10 06:10:03 +00:00
Šarūnas Nejus 71eb1bca68 Release: create tag right after commit version update 2024-12-10 05:51:13 +00:00
Šarūnas Nejus 01f1fafc88 Release: do not fail when mastodon auth fails 2024-12-02 06:55:56 +00:00
Šarūnas Nejus a7f00eaf13 Fix missing changelog in the release notes
Seems like this is the missing bit:
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#using-job-outputs-in-a-matrix-job
2024-11-26 15:59:41 +00:00
Šarūnas Nejus 9c4d4d9632 Include test files, manual to sdist 2024-11-26 15:38:13 +00:00
Šarūnas Nejus db71444fe7 Disable OIDC for coverage uploads from forks
This is based on the following comment:
https://github.com/codecov/codecov-action/issues/1594#issuecomment-2394913029
2024-11-23 01:13:16 +00:00
Šarūnas Nejus 979f1239ca Revert "Release: temporarily ignore errors with bumping version and pypi push"
This reverts commit cf3acec555.
2024-11-22 02:13:29 +00:00
Šarūnas Nejus 0780bf386c Release: make sure release artefacts are present for the tagging job 2024-11-22 02:05:36 +00:00
Šarūnas Nejus cf3acec555 Release: temporarily ignore errors with bumping version and pypi push 2024-11-22 01:58:26 +00:00
Šarūnas Nejus 4a5b9a26f1 Release: fix github-tag-action version 2024-11-22 01:57:10 +00:00
Šarūnas Nejus 7488c94d38 Release: try checking out the master branch 2024-11-22 01:49:46 +00:00
Šarūnas Nejus c6c4afa543 Release: Make sure to checkout the new commit with bumped version 2024-11-22 01:22:47 +00:00
Šarūnas Nejus ea6ddde351 Fix changelog retrieval workflow step 2024-11-22 00:59:50 +00:00
Šarūnas Nejus 6180ce1973 Revert "ci: Replace pull_request with pull_request_target"
This was a very bad idea since this made CI operate within the context
of the *base* branch, which meant that the tests were testing code in
the `master` branch instead of the branch that was to be merged!
2024-10-30 12:27:44 +00:00
Šarūnas Nejus 826783d4c3 Define docs dependencies as an extra
Seems like readthedocs build expects docs dependencies to be available
as an extra, see one of the failing builds: https://app.readthedocs.org/projects/beets/builds/26079213/.

You can see this has been failing due to missing 'pydata_sphinx_theme':

    raise ThemeError(__('no theme named %r found (missing theme.toml?)') % name)
    sphinx.errors.ThemeError: no theme named 'pydata_sphinx_theme' found (missing theme.toml?)
    Theme error:
    no theme named 'pydata_sphinx_theme' found (missing theme.toml?)
2024-10-30 11:55:55 +00:00
Šarūnas Nejus 9023ff5fd4 ci: Replace pull_request with pull_request_target
This makes the coverage token available in forks.
2024-10-20 17:05:44 +01:00
Šarūnas Nejus 06a5ecaf80 Replace isort and black by ruff format 2024-09-21 11:29:24 +01:00
Šarūnas Nejus f8ef22348b Replace flake8 by ruff 2024-09-21 11:28:43 +01:00
Šarūnas Nejus 06ca500ff2 Do not install reflink for tests on Windows 2024-09-04 18:56:19 +01:00
Šarūnas Nejus 111686e563 autobpm: add tests 2024-08-19 22:44:17 +01:00
Šarūnas Nejus 29da72b1d9 Show source files on codecov
While the commit merged yesterday fixed the coverage upload to
coveralls, it broke the source files preview on the platform.

This was due to the missing actions/checkout step in the coverage upload
job.
2024-06-16 18:24:48 +01:00
Šarūnas Nejus 3e075f2a9a Add 'test-with-coverage' command
And do not measure coverage by default.
2024-06-15 23:52:18 +01:00
Šarūnas Nejus 494c67603a Fix running tests with/without coverage (#5309)
Apparently the `!` operator does not exist in GitHub Actions.

Also fix coverage upload.
2024-06-15 10:15:53 +01:00
Šarūnas Nejus 30d345dd7d Try fixing coverage 2024-06-15 10:07:29 +01:00
Šarūnas Nejus 49e6012398 Try fixing testing workflow 2024-06-15 09:19:54 +01:00
Šarūnas Nejus 190198bfa6 Make make-github-release job dependent on publish-to-pypi 2024-06-15 08:48:13 +01:00
Šarūnas Nejus 8b52f3f9a5 Release workflow: Move changelog retrieval to the build job 2024-06-15 06:35:01 +01:00
Šarūnas Nejus ed574f4307 Release workflow: Update external GitHub action versions
This fixes three warnings seen on https://github.com/beetbox/beets/actions/runs/9296798803
2024-06-15 06:35:01 +01:00
Šarūnas Nejus 1f8c5b8b33 Release workflow: Use poe changelog in make-github-release job 2024-06-15 04:25:51 +01:00
Šarūnas Nejus 0a1bddd99e Release workflow: Use poetry to build the package 2024-06-15 04:25:51 +01:00
Šarūnas Nejus f964aa89c9 Release workflow: use poe bump to bump the version 2024-06-15 04:25:51 +01:00
Serene 54a8ef7a32 Fix changelog reminder workflow (#5305)
Quote the breaking glob as noted by @bal-e.
2024-06-15 12:23:06 +10:00
Serene 461a1c6f91 Make the release send a toot on Fosstodon (#5302)
This adds a step to the GitHub release so that it sends a toot on
Fosstodon, beets' Mastodon account, to publicise that and get some
engagement!

Not tested, but this is lifted straight from the action repo so it
*should* be okay. @snejus for a sanity check if you wouldn't mind
2024-06-15 10:02:47 +10:00
Šarūnas Nejus a3721fea81 Check all Python files when poetry.lock changes 2024-06-14 20:12:19 +01:00
Šarūnas Nejus 8608b2549b Trigger lint workflow on dependency updates 2024-06-14 18:49:39 +01:00
Šarūnas Nejus 040a2412b3 Quote changed files glob 2024-06-14 16:00:36 +01:00
SereneandŠarūnas Nejus 0c96da1136 Use output of tagging action in message
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
2024-06-14 21:51:29 +10:00
Serene c7da94152f Fix changelog workflow (#5231)
Use `pull_request_target` event for the changelog update reminder
2024-06-14 20:40:52 +10:00
Serene-Arc d03b1af90d Add mastodon step to release step 2024-06-14 18:52:08 +10:00
Šarūnas Nejus 0507f6f7c1 Fix sphinx docs linting 2024-06-12 10:51:58 +01:00
Šarūnas Nejus 50cf70eea3 Check all python files for formatting issues 2024-06-11 15:21:39 +01:00
Šarūnas Nejus 4752fb01df Do not use fetch-depth: 2 to get changed-files, and fix small typo 2024-06-10 13:46:27 +01:00
Šarūnas Nejus 67637225ba Revert "Use poetry action instead of pipx"
This reverts commit 5526bd3c184344d63eec8da4db9793b1be7002e7.

Poetry must be installed before `setup-python` action, weirdly. And we
need to install poethepoet globally too!
2024-06-10 13:46:27 +01:00
Šarūnas Nejus 17ec5909ed Revert "Simplify workflow"
This reverts commit 4550d39d1e7833557e863de18163f5a4b80db977.

I love this attempt to DRY-up the linting workflow! I remember back in
the day also initially assuming that this is how the jobs work. However,
I had to meet the harsh reality of each job needing to be set up from
zero. :(
2024-06-10 13:46:26 +01:00
Šarūnas Nejus fee65baf32 Revert "Use poetry prefix"
This reverts commit af996f42c3e5cacb6f5b68716a11500c1183ac02.

Since `poethepoet` is installed globally in the workflows, running it
does not require `poetry run` suffix. This is actually one of the
reasons why it's preferable to have this tool installed globally.
2024-06-10 13:46:26 +01:00
Šarūnas Nejus b00a83c229 Partially revert "Simplify logic ci.yaml"
This reverts commit 913f85620dc1d68aed87e19ed1f8f2126f483cad.
2024-06-10 13:46:26 +01:00
Serene-Arc 6d7a6df2fa Simplify workflow 2024-06-10 13:46:26 +01:00
Serene-Arc f3c9f03d71 Use poetry action instead of pipx 2024-06-10 13:46:26 +01:00
Serene-Arc 4d5b821e52 Use poetry prefix 2024-06-10 13:46:26 +01:00
Serene-Arc b57c0dd7c5 Rename action 2024-06-10 13:46:25 +01:00