Probe target compiler for opaque handle size #894
Workflow file for this run
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 with a variety of Python versions | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
| name: Python package | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install flake8 meson ninja | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Build and install | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install gfortran | |
| pip install numpy | |
| pip install . | |
| - name: Run unit tests | |
| run: | | |
| mkdir -p test_run | |
| cp -r test test_run/ | |
| cd test_run | |
| python -m unittest test.test_directc | |
| - name: Run example tests | |
| run: | | |
| cd examples | |
| make test | |
| - name: Clean before Direct-C tests | |
| run: | | |
| cd examples | |
| make clean | |
| - name: Run example tests (Direct-C mode) | |
| run: | | |
| cd examples | |
| make test_directc | |
| thirdparty: | |
| name: Third-party smoke tests | |
| needs: build | |
| runs-on: ubuntu-latest | |
| # Temporary during rollout: allow failures until third-party projects stabilize | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.13' | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y gfortran libopenblas-dev | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install meson meson-python ninja pyyaml pytest setuptools setuptools-scm scikit-build-core cmake ase | |
| python -m pip install numpy | |
| - name: Install f90wrap (from this PR) | |
| run: | | |
| python -m pip install . --no-build-isolation | |
| - name: Run third-party checks | |
| run: | | |
| python thirdparty/test_project.py --verbose |