Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.
name: Check if the Python package could be builded and installed
on: push
jobs:
requirements-valid:
name: Requirements validity check
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
- name: Install pip
run: python -m pip install --upgrade pip
- name: Check that requirements are installable
run: pip install -r requirements.txt
package-build-and-install:
name: Build and local install 📦
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: 📦 check
run: python setup.py check
- name: 📦 build
run: python setup.py sdist bdist_wheel
- name: 📦 local install
run: pip install dist/*.whl
- name: test runnable
run: ulozto-downloader -h