Commit graph

66 commits

Author SHA1 Message Date
Šarūnas Nejus
16a6cb1340
Update dependencies
And thus address the following security vulnerabilities: https://github.com/beetbox/beets/security/dependabot
2025-05-07 10:24:05 +01:00
Fabio Alessandro Locati
4b04d0e7c8
Update python to current supported versions. 2025-03-24 22:12:58 +01:00
Šarūnas Nejus
35dcfe508a
Configure integrated lyrics tests to only run on lyrics code changes 2025-01-19 01:48:03 +00:00
Šarūnas Nejus
fc49902f3a
Refactor lyrics backend tests to use pytest fixtures
- Replaced unittest.mock with pytest fixtures for better test isolation and readability.
- Simplified test cases by using parameterized tests.
- Added `requests-mock` dependency to `pyproject.toml` and `poetry.lock`.
- Removed redundant helper functions and classes.
2025-01-19 01:33:15 +00:00
Šarūnas Nejus
044712b796
Add now missing libcairo dependency
Thanks GitHub for breaking workflows out of thin air.
2025-01-13 06:58:30 +00:00
Šarūnas Nejus
5fc92c98da
Make sure release script is tested on Ubuntu 2025-01-12 05:12:29 +00:00
Šarūnas Nejus
eb557f720d
Resolve all URLs for markdown 2024-12-28 07:26:04 +00:00
Šarūnas Nejus
7b9625bc86
Test rst to md conversion 2024-12-28 07:24:22 +00:00
Š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
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
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
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
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
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
b00a83c229
Partially revert "Simplify logic ci.yaml"
This reverts commit 913f85620dc1d68aed87e19ed1f8f2126f483cad.
2024-06-10 13:46:26 +01:00
Serene
4494acd515
Simplify logic ci.yaml
Changed the logic so that it isn't testing repeatedly for the correct matrix version, and since we're using poetry instead of pipx, changed the action
2024-06-10 13:46:25 +01:00
Šarūnas Nejus
4a8e6e961f
Update workflows 2024-06-10 13:46:25 +01:00
Šarūnas Nejus
bfd9753314
Remove tox
Unfortunately tox does not play very nicely with Poetry. Tox was mostly
useful since it managed virtual environments, however now this is done
by Poetry.

Thus we do not anymore need it since we can run our commands using
`poetry run`. I have extended the internal helper tool 'project' with
those commands that have previously been run using tox.
2024-06-10 13:46:25 +01:00
Šarūnas Nejus
e30ee3f490
Update workflows 2024-06-10 13:10:16 +01:00
Šarūnas Nejus
90263a9e9e
Use poetry in workflows 2024-06-10 13:10:16 +01:00
Šarūnas Nejus
65bfbda9e7
Remove windows windows/tox specific instructions
On Python 3.8 this is irrelevant since in all cases tox v4 will be
installed which works fine.
2024-06-05 04:41:02 +01:00
Šarūnas Nejus
0aa361e6c8
Remove support for Python 3.7 in the build and docs 2024-06-05 04:41:02 +01:00
Šarūnas Nejus
8b4983fe7c
Add pytest and coverage configuration
Add `pytest-cov` which automatically measures coverage while tests are
executing and update tox and ci build configuration accordingly.

Add configuration for coverage:
  1. Enable analysing logical branches
  2. Save coverage details as HTML for local development use
  3. Configure the HTML output to include coverage context: on the
     right-hand side of each covered code line there is an expandable
     section which lists every test that ran that line.
2024-05-04 10:24:28 +01:00
Adrian Sampson
945d917320
Remove Python 3.12-dev CI config
Python 3.12 is now released, so this is what "3.x" uses.
2023-10-20 15:53:16 -04:00
wisp3rwind
74e1acf6e3 ci: update python versions
(try to) use semver x-ranges in order to avoid needing manual updates of
this in the future
2023-05-07 18:43:43 +02:00
wisp3rwind
d604c7e175 add mypy to actions, but allow failure 2022-12-18 09:09:49 +01:00
Andrew Rogl
af7f29491e Update pyhon versions 2022-06-13 18:26:30 +10:00
Andrew Rogl
4a9771430e Try a subversion of 3.11 2022-02-06 09:41:23 +10:00
Andrew Rogl
21dbb04360 Try just py3.11 2022-02-06 08:49:56 +10:00
Andrew Rogl
ec010d4950 Naming and quoting 2022-02-05 22:01:25 +10:00
Andrew Rogl
af5be3dbed Update CI for latest nightly 2022-02-05 21:55:31 +10:00
Andrew Rogl
400aece2a5
Add quotes around versions 2021-10-06 07:35:05 +10:00
Andrew Rogl
eafef0d521 Versioning 2021-10-05 13:10:09 +10:00
Andrew Rogl
68a1407c67 Update CI to the latest 3.10 release 2021-10-05 13:03:07 +10:00
Adrian Sampson
fcd90bfd20
Use RC version for Python 3.10
Apparently, 3.10-dev isn't available anymore?
2021-09-22 10:41:15 -04:00
Adrian Sampson
8f7d522225
CI: Skip optional dependencies on Windows 2021-08-19 17:00:27 -04:00
Adrian Sampson
b467c2c4fc
Drop Python 2.7 and 3.5 from Actions CI matrix 2021-08-19 16:48:58 -04:00
Adrian Sampson
af1eaf5062
Merge remote-tracking branch 'origin/windows-ci' into drop-py2 2021-08-19 16:48:46 -04:00
Adrian Sampson
eadeead565
CI: Freshen apt packages 2021-06-29 09:39:10 -04:00
arogl
7f45131f1a
Update ci.yaml
Remove deprecated Python version
2021-05-23 16:28:44 +10:00
Jef LeCompte
50163b373f
ci: scope ci workflow (#3907) 2021-04-17 09:51:03 -04:00
wisp3rwind
78808e4654 ci: also run on latest Python alpha, but allow failure 2021-03-23 09:18:56 +01:00
wisp3rwind
68fa03a5eb ci: install ffmpeg for replaygain tests; show skipped tests
We lost the ability to show skipped tests when transitioning to gh
actions. As it turns out, all of the replaygain tests were being
skipped, so as a start, try to install at least one backend.
2021-03-22 19:07:34 +01:00
Adrian Sampson
defe96b132
*Actually* use 3.9 for docs 2021-03-06 16:59:49 -05:00
Adrian Sampson
748e5318b4
Change "main" Python version to 3.9 2021-03-06 16:58:23 -05:00
Jacob Pavlock
657f3d3d49 add windows to github ci
Requires use of tox <=3.8.3.

See https://github.com/tox-dev/tox/issues/1550
2020-08-03 13:42:59 -07:00