Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 8 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,19 @@ on:
branches:
- main

defaults:
run:
shell: powershell

jobs:
build-packages:
Build:
if: "!contains(github.event.pull_request.labels.*.name, 'docs-only')"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
python: ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: conda-incubator/setup-miniconda@v2.0.0
- uses: compas-dev/compas-actions.build@v3
with:
miniconda-version: "latest"
activate-environment: igl
channels: conda-forge
python-version: 3.8

- name: build
run: |
conda install git cmake">=3.14" boost eigen=3.3 compas --yes
pip install -r requirements-dev.txt

- name: Lint with flake8
run: |
invoke lint

- name: Test with pytest
run: |
invoke test

- name: Test build docs
run: |
invoke docs
invoke_lint: true
check_import: true
use_conda: true
python: ${{ matrix.python }}
11 changes: 2 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,15 @@ on:
branches:
- main
tags:
- "v*"
- 'v*'
pull_request:
branches:
- main

jobs:
build:
name: custom build and deploy docs
docs:
runs-on: windows-latest
defaults:
run:
shell: powershell
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: compas-dev/compas-actions.docs@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
44 changes: 20 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,32 @@
name: Release

on:
push:
tags:
- "v*"
- 'v*'

name: Create Release

jobs:
Release:
runs-on: ubuntu-latest
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
python: ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: compas-dev/compas-actions.build@v3
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
invoke_lint: true
check_import: true
use_conda: true
python: ${{ matrix.python }}

Publish:
needs: Release
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- uses: compas-dev/compas-actions.publish@v1.0.0
- uses: compas-dev/compas-actions.publish@v2
with:
token: ${{ secrets.PYPI }}
pypi_token: ${{ secrets.PYPI }}
github_token: ${{ secrets.GITHUB_TOKEN }}
bdist_wheel: false