pip install and run #246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Installing via pip and running | |
run-name: pip install and run | |
on: [ push, pull_request ] | |
jobs: | |
install-and-run-on-python-3-11: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install audiblez | |
run: python -m pip install audiblez | |
- name: Check it runs as module | |
run: python -m audiblez --help | |
- name: check it runs as script | |
run: audiblez --help | |
- name: install ffmpeg, espeak-ng, wxgtk | |
run: sudo apt-get update && sudo apt-get install ffmpeg espeak-ng libgtk-3-dev --fix-missing | |
- name: download test epub | |
run: wget https://github.com/daisy/epub-accessibility-tests/releases/download/fundamental-2.0/Fundamental-Accessibility-Tests-Basic-Functionality-v2.0.0.epub | |
- name: create audiobook | |
run: audiblez Fundamental-Accessibility-Tests-Basic-Functionality-v2.0.0.epub | |
- name: check m4b output file | |
run: ls -lah Fundamental-Accessibility-Tests-Basic-Functionality-v2.0.0.m4b | |
install-and-run-on-python-3-12: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: install ffmpeg, espeak-ng, wxgtk | |
run: sudo apt-get update && sudo apt-get install ffmpeg espeak-ng libgtk-3-dev --fix-missing | |
- name: Install audiblez | |
run: python -m pip install audiblez | |
- name: Check it runs as module | |
run: python -m audiblez --help | |
- name: check it runs as script | |
run: audiblez --help | |
install-and-run-on-python-3-10: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: install ffmpeg, espeak-ng, wxgtk | |
run: sudo apt-get update && sudo apt-get install ffmpeg espeak-ng libgtk-3-dev --fix-missing | |
- name: Install audiblez | |
run: python -m pip install audiblez | |
- name: Check it runs as module | |
run: python -m audiblez --help | |
- name: check it runs as script | |
run: audiblez --help | |
windows-git-clone-and-run: | |
runs-on: windows-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: pip install audiblez | |
- name: check it runs as script | |
run: audiblez --help | |
- name: download test epub on windows using powershell | |
run: Invoke-WebRequest -Uri https://github.com/daisy/epub-accessibility-tests/releases/download/fundamental-2.0/Fundamental-Accessibility-Tests-Basic-Functionality-v2.0.0.epub -OutFile book.epub | |
- name: create audiobook | |
run: audiblez book.epub | |
- name: check book.m4b file exists in current directory | |
run: Get-ChildItem -Path .\ -Filter *.m4b |