test published package #486
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: test published package | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 3 * * *" | |
jobs: | |
full_test_published: | |
strategy: | |
fail-fast: false | |
matrix: | |
os-version: ['ubuntu-22.04','macos-12'] | |
python-version: [ '3.11' ] | |
include: | |
- os-version: 'ubuntu-22.04' | |
python-version: '3.8' | |
- os-version: 'ubuntu-22.04' | |
python-version: '3.9' | |
- os-version: 'ubuntu-22.04' | |
python-version: '3.10' | |
- os-version: 'ubuntu-22.04' | |
python-version: '3.12' | |
runs-on: ${{ matrix.os-version }} | |
name: test package on ${{ matrix.os-version }} with ${{ matrix.python-version }} | |
steps: | |
#preparation | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: install md5sum for macos | |
if: ${{ matrix.os-version == 'macos-12' }} | |
run: | | |
brew install md5sha1sum | |
- name: update pip | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade setuptools | |
#distant installation | |
- name: install ytdlmusic | |
run: | | |
pip install ytdlmusic | |
#configuration | |
- name: install ffmpeg with token | |
uses: FedericoCarboni/setup-ffmpeg@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
#test 1 | |
- name: Launch minimal test | |
uses: ./.github/actions/minimal_test | |
#test 2 | |
- name: Launch full test | |
uses: ./.github/actions/full_test | |