|
| 1 | +name: Check PyPI Wheels |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + schedule: |
| 5 | + - cron: '0 14 * * *' # 2pm UTC == 9am EST |
| 6 | +jobs: |
| 7 | + generate_python_matrix: |
| 8 | + runs-on: ubuntu-latest |
| 9 | + outputs: |
| 10 | + python_versions: ${{ steps.set-matrix.outputs.python_versions }} |
| 11 | + steps: |
| 12 | + - name: Checkout STUMPY |
| 13 | + uses: actions/checkout@v4 |
| 14 | + with: |
| 15 | + repository: stumpy-dev/stumpy |
| 16 | + - name: Upgrade Pip, Install Minimum Requirements |
| 17 | + run: | |
| 18 | + python -m pip install --upgrade pip pandas lxml |
| 19 | + shell: bash |
| 20 | + - name: Generate Python versions |
| 21 | + id: set-matrix |
| 22 | + run: | |
| 23 | + MIN_PYTHON=$(python ./versions.py -mode min | grep python | awk '{print $2}') |
| 24 | + MAX_PYTHON=$(python ./versions.py -mode max | grep python | awk '{print $2}') |
| 25 | + echo "python_versions=$(python ./versions.py -mode range $MIN_PYTHON $MAX_PYTHON)" >> $GITHUB_OUTPUT |
| 26 | + shell: bash |
| 27 | + check_pypi_wheels: |
| 28 | + needs: generate_python_matrix |
| 29 | + runs-on: ${{ matrix.os }} |
| 30 | + strategy: |
| 31 | + matrix: |
| 32 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 33 | + python-version: ${{ fromJSON(needs.generate_python_matrix.outputs.python_versions) }} |
| 34 | + steps: |
| 35 | + - name: Checkout STUMPY |
| 36 | + uses: actions/checkout@v4 |
| 37 | + with: |
| 38 | + repository: stumpy-dev/stumpy |
| 39 | + - name: Set Up Pixi |
| 40 | + uses: prefix-dev/setup-pixi@0.94 |
| 41 | + with: |
| 42 | + pixi-version: v0.62.2 |
| 43 | + - name: Set Up Python |
| 44 | + run: pixi add python="${{ matrix.python-version }}" |
| 45 | + shell: bash |
| 46 | + - name: Display Python Version |
| 47 | + run: pixi run python -c "import sys; print(sys.version)" |
| 48 | + shell: bash |
| 49 | + - name: Show Full Numba Environment |
| 50 | + run: pixi run python -m numba -s |
| 51 | + shell: bash |
| 52 | + - name: Prevent STUMPY Source Installation |
| 53 | + run: sed -i.BAK '/^\[tool\.pixi\.activation/,+2d' pyproject.toml && rm -rf pyproject.toml.BAK |
| 54 | + shell: bash |
| 55 | + - nqme: Display PyProject.toml |
| 56 | + run: cat pyproject.toml |
| 57 | + shell: bash |
| 58 | + - name: Run Unit Tests |
| 59 | + run: pixi run tests |
| 60 | + shell: bash |
0 commit comments