Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerzaehler committed Apr 1, 2024
1 parent 8f2ab04 commit 4d92454
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 25 deletions.
50 changes: 27 additions & 23 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ name: Check and test

on: [push, pull_request]

env:
FORCE_COLOR: 1

jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version:
- "3.8" # minimum required
- "3.12" # latest
- "3.13-dev" # next
# os: ["ubuntu-latest"]
# python-version:
# - "3.8" # minimum required
# - "3.12" # latest
# - "3.13-dev" # next
include:
- python-version: 3.8
os: windows-2022
Expand All @@ -19,13 +22,14 @@ jobs:
continue-on-error: ${{ matrix.python-version == '3.13-dev' }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: pip install poetry
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- run: poetry env use $(which python)
- run: poetry env use ${{ steps.setup-python.outputs.python-path }}
- run: poetry install
- run: poetry run ruff format --check
- run: poetry run ruff check
Expand All @@ -34,19 +38,19 @@ jobs:
- uses: coverallsapp/github-action@v2
if: github.event_name == 'pull_request' && matrix.python-version == '3.8'

build-beets-master:
runs-on: ubuntu-latest
# build-beets-master:
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- run: pip install poetry
- uses: actions/setup-python@v3
with:
python-version: 3.8
cache: poetry
- run: poetry env use $(which python)
- run: poetry install
# We cannot use `poetry add` because poetry does not install beets
# dependencies properly
- run: poetry run pip install "git+https://github.com/beetbox/beets#master"
- run: poetry run pytest
# steps:
# - uses: actions/checkout@v4
# - run: pip install poetry
# - uses: actions/setup-python@v5
# with:
# python-version: 3.8
# cache: poetry
# - run: poetry env use $(which python)
# - run: poetry install
# # We cannot use `poetry add` because poetry does not install beets
# # dependencies properly
# - run: poetry run pip install "git+https://github.com/beetbox/beets#master"
# - run: poetry run pytest
8 changes: 6 additions & 2 deletions test/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ def test_external(self):
external_dir = os.path.join(self.mkdtemp(), "myplayer")
self.config["convert"]["formats"] = {
"aac": {
"command": "bash -c \"cp '$source' '$dest';"
+ "printf ISAAC >> '$dest'\"",
"command": (
'powershell -Command "'
"Copy-Item -Path '$source' -Destination '$dest';"
"Add-Content -Path '$dest' -Value ISAAC"
'"'
),
"extension": "m4a",
},
}
Expand Down

0 comments on commit 4d92454

Please sign in to comment.