Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bbye98 committed Mar 8, 2024
1 parent c8e623e commit c4b4e2b
Show file tree
Hide file tree
Showing 8 changed files with 265 additions and 148 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ env:
jobs:
build:
name: Continuous integration (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
Expand All @@ -39,7 +40,4 @@ jobs:
- name: Test with coverage and pytest
run: |
python3 -m pip install coverage pytest
coverage run -m pytest
- uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
coverage run -m pytest
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/notebooks/getting_started.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_sources/notebooks/getting_started.ipynb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
"source": [
"To use the Spotify Web API with user authentication, \n",
"\n",
"1. Get the necessary authorization scopes using `spotify.WebAPI.get_authorization_scopes()`:"
"1. Get the necessary authorization scopes using `spotify.WebAPI.get_scopes()`:"
]
},
{
Expand Down
378 changes: 248 additions & 130 deletions docs/notebooks/getting_started.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/source/notebooks/getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
"source": [
"To use the Spotify Web API with user authentication, \n",
"\n",
"1. Get the necessary authorization scopes using `spotify.WebAPI.get_authorization_scopes()`:"
"1. Get the necessary authorization scopes using `spotify.WebAPI.get_scopes()`:"
]
},
{
Expand Down
15 changes: 8 additions & 7 deletions src/minim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
import tempfile
import warnings

__all__ = [
"audio", "itunes", "qobuz", "spotify", "tidal", "utility",
"FOUND_FFMPEG", "FOUND_FLASK", "FOUND_PLAYWRIGHT",
"VERSION", "REPOSITORY_URL", "DIR_HOME", "DIR_TEMP", "ILLEGAL_CHARACTERS"
]

FOUND_FFMPEG = shutil.which("ffmpeg") is not None
FOUND_FLASK = find_spec("flask") is not None
FOUND_PLAYWRIGHT = find_spec("playwright") is not None
Expand All @@ -21,6 +27,7 @@
"vorbis": "libvorbis" if b"--enable-libvorbis" in _.stdout
else "vorbis -strict experimental"
}
__all__.append("FFMPEG_CODECS")
else:
wmsg = ("FFmpeg was not found, so certain key features in Minim "
"are unavailable. To install FFmpeg, visit "
Expand All @@ -39,10 +46,4 @@
with open(DIR_HOME / "minim.cfg", "w") as f:
_config.write(f)

from . import audio, itunes, qobuz, spotify, tidal, utility # noqa: E402

__all__ = [
"audio", "itunes", "qobuz", "spotify", "tidal", "utility",
"FOUND_FFMPEG", "FFMPEG_CODECS", "FOUND_FLASK", "FOUND_PLAYWRIGHT",
"VERSION", "REPOSITORY_URL", "DIR_HOME", "DIR_TEMP", "ILLEGAL_CHARACTERS"
]
from . import audio, itunes, qobuz, spotify, tidal, utility # noqa: E402

0 comments on commit c4b4e2b

Please sign in to comment.