diff --git a/.github/workflows/build-aarch64.yml b/.github/workflows/build-aarch64.yml index 5bd4d7b1e..4ba59dc70 100644 --- a/.github/workflows/build-aarch64.yml +++ b/.github/workflows/build-aarch64.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} @@ -29,19 +29,7 @@ jobs: source venv/bin/activate python -m pip install --upgrade pip pip install wheel - pip install cibuildwheel==1.10.0 - - - name: Lint source with flake8 - run: | - source venv/bin/activate - pip install flake8 - flake8 tests setup.py - - - name: Lint source with mypy - run: | - source venv/bin/activate - pip install mypy - mypy --config-file mypi.ini setup.py tests + pip install cibuildwheel==2.3.1 - name: Build wheels and test run: | @@ -49,7 +37,8 @@ jobs: python -m cibuildwheel --output-dir dist env: # build python 3.7 and 3.8 - CIBW_BUILD: 'cp37-* cp38-* cp39-*' + CIBW_BUILD: 'cp37-* cp38-* cp39-* cp310-*' + CIBW_SKIP: '*-musllinux_*' CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014 CIBW_BUILD_VERBOSITY_LINUX: 0 # we need boost diff --git a/.github/workflows/build-m1-wheel.yml b/.github/workflows/build-m1-wheel.yml index c5e1ac2cb..f0f915fb0 100644 --- a/.github/workflows/build-m1-wheel.yml +++ b/.github/workflows/build-m1-wheel.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} @@ -21,29 +21,46 @@ jobs: with: fetch-depth: 0 - - name: Lint source with flake8 + - name: Ensure dependencies are present run: | - arch -arm64 python -m pip install --upgrade pip - arch -arm64 pip install flake8 - arch -arm64 flake8 tests setup.py + arch -arm64 brew install python@3.9 + arch -arm64 brew install python@3.10 - - name: Lint source with mypy + - name: Build ${{ matrix.os }} wheels run: | - arch -arm64 pip install mypy - arch -arm64 mypy --config-file mypi.ini setup.py tests - - - name: Build ${{ matrix.os }} wheels and test - run: | - arch -arm64 pip wheel -w dist . - arch -arm64 delocate-wheel -v dist/*.whl + rm -rf venv + arch -arm64 $(brew --prefix python@3.9)/libexec/bin/python -m venv venv + . venv/bin/activate + arch -arm64 pip wheel -w dist --no-deps . + arch -arm64 pip install delocate + arch -arm64 delocate-wheel -v dist/*cp39*.whl + deactivate + rm -rf venv + arch -arm64 $(brew --prefix python@3.10)/libexec/bin/python -m venv venv + . venv/bin/activate + arch -arm64 pip wheel -w dist --no-deps . + arch -arm64 pip install delocate + arch -arm64 delocate-wheel -v dist/*cp310*.whl + deactivate + rm -rf venv - name: Test wheel run: | - arch -arm64 python3 -m venv venv - . ./venv/bin/activate - arch -arm64 pip install ./dist/*.whl + rm -rf venv + arch -arm64 $(brew --prefix python@3.9)/libexec/bin/python -m venv venv + . venv/bin/activate + arch -arm64 pip install ./dist/*cp39*.whl + arch -arm64 pip install pytest + arch -arm64 ./venv/bin/pytest -v ./tests + deactivate + rm -rf venv + arch -arm64 $(brew --prefix python@3.10)/libexec/bin/python -m venv venv + . venv/bin/activate + arch -arm64 pip install ./dist/*cp310*.whl arch -arm64 pip install pytest - arch -arm64 ./venv/bin/py.test -v ./tests -s + arch -arm64 ./venv/bin/pytest -v ./tests + deactivate + rm -rf venv - name: Upload wheels uses: actions/upload-artifact@v2 diff --git a/.github/workflows/build-test-cplusplus.yml b/.github/workflows/build-test-cplusplus.yml index bb6e8399e..c3087a9bb 100644 --- a/.github/workflows/build-test-cplusplus.yml +++ b/.github/workflows/build-test-cplusplus.yml @@ -10,10 +10,10 @@ jobs: - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} - + - name: Checkout code uses: actions/checkout@v2 @@ -32,16 +32,16 @@ jobs: name: ASAN ubuntu runs-on: ubuntu-20.04 steps: - + - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} - + - name: Checkout code uses: actions/checkout@v2 - + - name: cmake, RunTests with address- and undefined sanitizer on Ubuntu run: | sudo fallocate -l 16G /swapfile @@ -62,13 +62,13 @@ jobs: steps: - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} - + - name: Checkout code uses: actions/checkout@v2 - + - name: cmake, RunTests with thread sanitizer on Ubuntu run: | mkdir build-tsan @@ -84,7 +84,7 @@ jobs: - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} @@ -97,4 +97,4 @@ jobs: cd build-win cmake .. cmake --build . --config Release -j 6 - ctest -C Release -j 6 \ No newline at end of file + ctest -C Release -j 6 diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 8bff5ef1a..b6765bf6b 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} @@ -46,7 +46,7 @@ jobs: python -m build --sdist --outdir dist . - name: Build ${{ matrix.os }} wheels and test - uses: joerick/cibuildwheel@v2.2.2 + uses: joerick/cibuildwheel@v2.3.1 with: output-dir: dist env: diff --git a/.github/workflows/doc-html-pdf.yml b/.github/workflows/doc-html-pdf.yml index 04383f202..bcc8b704e 100644 --- a/.github/workflows/doc-html-pdf.yml +++ b/.github/workflows/doc-html-pdf.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} diff --git a/.github/workflows/manual-plot.yml b/.github/workflows/manual-plot.yml index 382debd4e..feffe392c 100644 --- a/.github/workflows/manual-plot.yml +++ b/.github/workflows/manual-plot.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Cancel previous runs on the same branch - uses: styfle/cancel-workflow-action@0.5.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} diff --git a/.github/workflows/plot-k27-no-bitfield.yaml b/.github/workflows/plot-k27-no-bitfield.yaml index d9d5e88ed..df89681ef 100644 --- a/.github/workflows/plot-k27-no-bitfield.yaml +++ b/.github/workflows/plot-k27-no-bitfield.yaml @@ -14,7 +14,7 @@ jobs: steps: - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} diff --git a/.github/workflows/plot-k27.yaml b/.github/workflows/plot-k27.yaml index 6bc2f0f70..37bda8444 100644 --- a/.github/workflows/plot-k27.yaml +++ b/.github/workflows/plot-k27.yaml @@ -14,7 +14,7 @@ jobs: steps: - name: Cancel previous runs on the same branch if: ${{ github.ref != 'refs/heads/main' }} - uses: styfle/cancel-workflow-action@0.7.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }}