Skip to content

Commit

Permalink
Merge pull request #36 from bbc/python_3_10_support
Browse files Browse the repository at this point in the history
Add Python 3.10 build testing
  • Loading branch information
chrisn authored Nov 9, 2023
2 parents 4f38287 + cc41ede commit e138003
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9"] # no 3.10 yet - see https://github.com/bbc/audio-offset-finder/issues/20
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
Expand All @@ -31,6 +31,10 @@ jobs:
if [ "$RUNNER_OS" == "macOS" ]; then
brew install ffmpeg
elif [ "$RUNNER_OS" == "Linux" ]; then
# apt-spy needed because of issues with the default APT repos for Workflow hosts - https://github.com/actions/runner-images/issues/675
sudo gem install apt-spy2
sudo apt-spy2 fix --commit --launchpad --country=US
sudo apt-get update
sudo apt install -y ffmpeg
fi
Expand All @@ -43,7 +47,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then echo "requirements.txt"; cat requirements.txt; pip install -r requirements.txt; fi
pip install .
- name: Lint with black
uses: psf/black@stable
with:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
librosa==0.9.1
matplotlib==3.3.4
matplotlib==3.7.3
numpy==1.22.0
pytest==6.2.3
pytest==6.2.5
scipy==1.10.0
10 changes: 5 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ classifiers =
[options]
packages = find:
install_requires =
scipy >= 0.12.0
librosa >= 0.9.1
matplotlib >= 3.7.3
numpy >= 1.22.0
librosa
matplotlib
scipy >= 1.10.0

[options.extras_require]
test = pytest
test = pytest >= 6.2.5
dev =
black == 22.3.0
black >= 22.3.0

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit e138003

Please sign in to comment.