diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d1c7368 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +# This workflow will build a wheel and sdist and upload them as an artifact + +name: Build wheel and sdist + +on: + push: + branches: ["main"] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install flit + run: | + python -m pip install --upgrade pip + python -m pip install flit + - name: Build + run: | + flit build + - name: Upload build artifact + uses: actions/upload-artifact@v3 + with: + name: distribution + path: dist diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f5b4de3..b84f3e1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,4 +1,4 @@ -name: website +name: Build and publish docs # build the documentation whenever there are new commits on main on: diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 69b7536..854aa0b 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,9 +5,9 @@ name: Python package on: push: - branches: [ "dev" ] + branches: ["dev"] pull_request: - branches: [ "main", "dev" ] + branches: ["main", "dev"] jobs: build: