Skip to content

Commit 217ab3d

Browse files
committed
latest workflow
1 parent 790cb3d commit 217ab3d

File tree

3 files changed

+30
-64
lines changed

3 files changed

+30
-64
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,19 @@ on:
88
branches:
99
- main
1010

11-
defaults:
12-
run:
13-
shell: powershell
14-
1511
jobs:
16-
build-packages:
12+
Build:
13+
if: "!contains(github.event.pull_request.labels.*.name, 'docs-only')"
1714
runs-on: ${{ matrix.os }}
1815
strategy:
1916
matrix:
2017
os: [macos-latest, windows-latest]
18+
python: ['3.8', '3.9', '3.10']
2119

2220
steps:
23-
- uses: actions/checkout@v2
24-
with:
25-
submodules: recursive
26-
27-
- uses: conda-incubator/[email protected]
21+
- uses: compas-dev/compas-actions.build@v3
2822
with:
29-
miniconda-version: "latest"
30-
activate-environment: igl
31-
channels: conda-forge
32-
python-version: 3.8
33-
34-
- name: build
35-
run: |
36-
conda install git cmake">=3.14" boost eigen=3.3 compas --yes
37-
pip install -r requirements-dev.txt
38-
39-
- name: Lint with flake8
40-
run: |
41-
invoke lint
42-
43-
- name: Test with pytest
44-
run: |
45-
invoke test
46-
47-
- name: Test build docs
48-
run: |
49-
invoke docs
23+
invoke_lint: true
24+
check_import: true
25+
use_conda: true
26+
python: ${{ matrix.python }}

.github/workflows/docs.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,15 @@ on:
55
branches:
66
- main
77
tags:
8-
- "v*"
8+
- 'v*'
99
pull_request:
1010
branches:
1111
- main
1212

1313
jobs:
14-
build:
15-
name: custom build and deploy docs
14+
docs:
1615
runs-on: windows-latest
17-
defaults:
18-
run:
19-
shell: powershell
2016
steps:
21-
- uses: actions/checkout@v2
22-
with:
23-
submodules: recursive
2417
- uses: compas-dev/compas-actions.docs@v2
2518
with:
2619
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,32 @@
1-
name: Release
2-
31
on:
42
push:
53
tags:
6-
- "v*"
4+
- 'v*'
5+
6+
name: Create Release
77

88
jobs:
9-
Release:
10-
runs-on: ubuntu-latest
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [macos-latest, windows-latest]
14+
python: ['3.8', '3.9', '3.10']
15+
1116
steps:
12-
- uses: actions/checkout@v2
13-
- name: Create Release
14-
id: create_release
15-
uses: actions/create-release@v1
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
- uses: compas-dev/compas-actions.build@v3
1818
with:
19-
tag_name: ${{ github.ref }}
20-
release_name: Release ${{ github.ref }}
21-
draft: false
22-
prerelease: false
19+
invoke_lint: true
20+
check_import: true
21+
use_conda: true
22+
python: ${{ matrix.python }}
2323

2424
Publish:
25-
needs: Release
25+
needs: build
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v2
29-
with:
30-
submodules: recursive
31-
- uses: actions/setup-python@v2
32-
with:
33-
python-version: "3.x"
34-
- uses: compas-dev/[email protected]
28+
- uses: compas-dev/compas-actions.publish@v2
3529
with:
36-
token: ${{ secrets.PYPI }}
30+
pypi_token: ${{ secrets.PYPI }}
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
bdist_wheel: false

0 commit comments

Comments
 (0)