Update CIBW_BEFORE_ALL command in dist.yml #87
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
| name: Test | |
| on: | |
| push: { branches: [ "master" ] } | |
| pull_request: { branches: [ "master" ] } | |
| concurrency: | |
| group: test-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: ["3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: { submodules: recursive } | |
| - name: Setup Conda environment | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| # Disabled for now due to | |
| # https://github.com/conda-incubator/setup-miniconda/issues/379 | |
| # miniforge-version: latest | |
| use-mamba: true | |
| channels: conda-forge | |
| channel-priority: true | |
| - name: Install dependencies | |
| shell: bash -l {0} | |
| run: | | |
| conda install --quiet ppl gmp mpfr mpc | |
| - name: Build | |
| shell: bash -l {0} | |
| run: | | |
| pip install --verbose . | |
| - name: Install test dependencies | |
| run: | | |
| conda env update --quiet -n test -f environment.test.yml | |
| conda list | |
| - name: Lint | |
| shell: bash -l {0} | |
| run: | | |
| cython-lint --ignore=E265,E266,E501,E741 --exclude='ppl_decl.pxd' ppl/ | |
| - name: Run tests | |
| shell: bash -l {0} | |
| run: | | |
| python setup.py test | |
| - name: Show logs | |
| run: grep "" /dev/null `find -name '*.log'` || true | |
| if: ${{ always() }} |