Skip to content

Commit

Permalink
files
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyod committed Sep 1, 2024
1 parent 89bbe9a commit ae72c7a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 116 deletions.
112 changes: 0 additions & 112 deletions .github/workflows/build.yaml

This file was deleted.

38 changes: 34 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI/CD flow
name: CI/CD

on:
push:
Expand All @@ -18,11 +18,20 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install --upgrade pip
Expand All @@ -37,33 +46,54 @@ jobs:
- name: Build wheels
env:
CIBW_BUILD: cp${{ matrix.python-version//.}}*
CIBW_BUILD: cp${{ matrix.python-version == '3.10' && '310' || matrix.python-version == '3.11' && '311' || matrix.python-version == '3.12' && '312' || matrix.python-version }}*
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_SKIP: pp* *-musllinux_* *-manylinux_i686
run: |
python -m cibuildwheel --output-dir dist
python -m cibuildwheel --output-dir wheelhouse
- name: Build source distribution
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
run: |
pip install build
python -m build --sdist --outdir dist
- name: Store artifacts
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/*.whl
path: |
wheelhouse/*.whl
dist/*.tar.gz
build_docs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Cache pip packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-docs-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-docs-
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e .[dev]
sudo apt install pandoc -y
- name: Build docs
run: sphinx-build docs/source _build/html -W
- name: Store documentation
uses: actions/upload-artifact@v3
with:
name: documentation
path: _build/html

publish:
needs: [test_and_build, build_docs]
Expand Down

0 comments on commit ae72c7a

Please sign in to comment.