Skip to content

Added test workflow to install builded wheels before the upload #8

Added test workflow to install builded wheels before the upload

Added test workflow to install builded wheels before the upload #8

Workflow file for this run

name: Unit Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
get-supported-versions:
name: Get Supported Versions
uses: ./.github/workflows/get-supported-versions.yml
secrets: inherit
unit-tests:
name: Unit Tests (Python ${{ matrix.python-version }})
needs: get-supported-versions
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJson(needs.get-supported-versions.outputs.supported_python) }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install packaging pyyaml colorama requests
- name: Run unit tests
run: python -m unittest discover -s test -v
verify-s3-wheels:
name: Verify S3 wheels (Python ${{ matrix.python-version }})
needs: get-supported-versions
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJson(needs.get-supported-versions.outputs.supported_python) }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r build_requirements.txt
- name: Verify S3 wheels
run: python verify_s3_wheels.py ${{ secrets.DL_BUCKET }}