Skip to content

chore(deps): bump actions/download-artifact in /.github/workflows #1316

chore(deps): bump actions/download-artifact in /.github/workflows

chore(deps): bump actions/download-artifact in /.github/workflows #1316

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- '**/README.md'
- 'docs/**/*'
jobs:
build_ubuntu:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ['3.10']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: install apt packages
run: |
sudo apt-get update
sudo apt-get install postgresql-12 postgresql-client-12 openimageio-tools
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build --info
- name: Lint with Gradle
run: ./gradlew lint --info
- name: Wheels installation test
run: ./gradlew :installationTest -x pythonUnittest -x pythonIntegrationtest
- uses: actions/upload-artifact@v2
name: Upload reports
if: always()
with:
name: test-reports-linux-${{ github.run_id }}-${{ github.run_number }}
path: |
./tests/reports/*.html
retention-days: 10
- uses: actions/upload-artifact@v2
with:
name: wheel-linux
path: |
./dist/catoserver*.whl
./dist/catoclient*.whl
build_windows:
runs-on: windows-latest
strategy:
matrix:
python: [ '3.10' ]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Python deps (to prevent pywin32_bootstrap issues in CI)
run: |
pip install poetry
python -m virtualenv .venv
.venv\Scripts\activate
poetry export -o requirements-poetry.txt --without-hashes
pip install -r requirements.txt
pip install -r requirements-poetry.txt
- name: Setup OpenImageIO
run: |
curl --location https://github.com/Latios96/oiio-building/releases/download/v2.2.7.0-test/openimageio-2.2.7.0-windows.tar --output openimageio-2.2.7.0-windows.tar
tar -xvf openimageio-2.2.7.0-windows.tar
echo "$env:GITHUB_WORKSPACE\build\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Build with Gradle
run: .\gradlew build --info
- name: Lint with Gradle
run: .\gradlew lint --info
- uses: actions/upload-artifact@v2
name: Upload reports
if: always()
with:
name: test-reports-windows-${{ github.run_id }}-${{ github.run_number }}
path: |
./tests/reports/*.html
retention-days: 10
publish:
runs-on: ubuntu-20.04
needs:
- build_ubuntu
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4.1.7
with:
name: wheel-linux
- name: list current dir content
run: |
sudo apt-get update
sudo apt install tree
tree
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./*.whl"]'