From 032b14ed45b9c036ed0c7cddc6aa14e77d0a8984 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Thu, 26 Dec 2019 19:29:46 -0800 Subject: [PATCH] Adding artifact upload support for builds - Including both bdist_wheel and sdist - Adding pandoc dependencies --- .github/workflows/manylinux2010.yml | 10 +++++++++- .github/workflows/packagingtest.yml | 9 +++++++++ Pipfile | 1 + requirements.txt | 1 + 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manylinux2010.yml b/.github/workflows/manylinux2010.yml index 281fd56..1678be3 100644 --- a/.github/workflows/manylinux2010.yml +++ b/.github/workflows/manylinux2010.yml @@ -17,10 +17,18 @@ jobs: # capnproto build requires cmake 3+, CentOS 6 (manylinux2010) defaults to cmake 2.8 - name: Install dependencies run: | - yum install -y cmake3 ninja-build + yum install -y cmake3 ninja-build pandoc ln -sf /usr/bin/cmake3 /usr/local/bin/cmake ln -s /usr/bin/ninja-build /usr/local/bin/ninja /opt/python/${{ matrix.python-version }}/bin/python -m pip install -r requirements.txt - name: Build pycapnp and install run: | /opt/python/${{ matrix.python-version }}/bin/python setup.py build + - name: Packaging + run: | + /opt/python/${{ matrix.python-version }}/bin/python setup.py bdist_wheel + /opt/python/${{ matrix.python-version }}/bin/python setup.py sdist + - uses: actions/upload-artifact@v1.0.0 + with: + name: manylinux2010_dist + path: dist diff --git a/.github/workflows/packagingtest.yml b/.github/workflows/packagingtest.yml index 6dacf89..e93c8d7 100644 --- a/.github/workflows/packagingtest.yml +++ b/.github/workflows/packagingtest.yml @@ -17,6 +17,7 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: r-lib/actions/setup-pandoc@v1 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: @@ -38,3 +39,11 @@ jobs: run: | pip install pytest pytest + - name: Packaging + run: | + python setup.py bdist_wheel + python setup.py sdist + - uses: actions/upload-artifact@v1.0.0 + with: + name: package_dist + path: dist diff --git a/Pipfile b/Pipfile index 09ebd17..cf20130 100644 --- a/Pipfile +++ b/Pipfile @@ -11,3 +11,4 @@ pytest = "*" tox = "*" Jinja2 = "*" Cython = "*" +pypandoc = "*" diff --git a/requirements.txt b/requirements.txt index 99f2720..4df7638 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ jinja2 cython setuptools +pypandoc pytest tox