Comment out dependency on make-wheels for make-sdist #41
This file contains hidden or 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
| # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: Build Packages | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| make-wheels: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10","3.11","3.12","3.13"] | |
| os: [ubuntu-latest, windows-latest] #, macos-latest] | |
| compiler: [gcc] | |
| compiler-version: [13, 15] | |
| exclude: | |
| - os: windows-latest | |
| compiler-version: 15 | |
| - os: ubuntu-latest | |
| compiler-version: 13 | |
| steps: | |
| - name: Fortran Setup | |
| uses: fortran-lang/setup-fortran@v1 | |
| id: setup-fortran | |
| with: | |
| compiler: ${{ matrix.toolchain.compiler }} | |
| version: ${{ matrix.toolchain.version }} | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: 'x64' | |
| cache: 'pip' | |
| - name: show-versions | |
| run: | | |
| gcc --version | |
| gfortran --version | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install click numpy pandas matplotlib build wheel setuptools setuptools_scm meson-python pytest ninja | |
| - name: Install Patchelf | |
| if: runner.os == 'Linux' | |
| run: | | |
| python -m pip install patchelf | |
| - name: Build and package | |
| run: | | |
| python -m build --wheel --no-isolation | |
| - name: Store Wheel | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: pyfvs-${{ runner.os }}-py${{ matrix.python-version }}-wheels | |
| path: dist/*.whl | |
| if-no-files-found: warn | |
| overwrite: true | |
| make-sdist: | |
| runs-on: ubuntu-latest | |
| # needs: make-wheels | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.13 | |
| architecture: 'x64' | |
| cache: 'pip' | |
| # TODO: Add steps to gather wheels and publish to PyPI | |
| # TODO: Merge artifacts, uses: [actions/upload-artifact/merge@v4](https://github.com) | |
| # Store the source distribution one time per build | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install click numpy pandas matplotlib build wheel setuptools setuptools_scm meson-python pytest ninja | |
| - name: Install Patchelf | |
| if: runner.os == 'Linux' | |
| run: | | |
| python -m pip install patchelf | |
| - name: Create sdist | |
| run: | | |
| python -m build --sdist --no-isolation | |
| - name: Store Sdist | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: pyfvs-sdist | |
| path: dist/*.tar.gz | |
| if-no-files-found: warn | |
| overwrite: true |