[pre-commit.ci] pre-commit autoupdate #212
Workflow file for this run
This file contains 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: Check Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install g++12 | |
run: | | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 1000 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 1000 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
cache-dependency-path: "**/pyproject.toml" | |
- name: Install build dependencies | |
run: python -m pip install --upgrade pip wheel twine build | |
- name: Build package | |
run: python -m build | |
- name: Check package | |
run: twine check --strict dist/*.whl |