-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(actions): Bring back some basic actions
- Loading branch information
Showing
9 changed files
with
304 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
custom: 'https://www.kitware.com/contact-us/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
name: Bug report | ||
about: Report a reproducible bug or regression. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Ignoring this template may result in your bug report getting deleted --> | ||
|
||
**Describe the bug** | ||
|
||
A clear and concise description of what the bug is. Before submitting, please remove unnecessary sections. | ||
|
||
**To Reproduce** | ||
|
||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. See error | ||
|
||
***Code*** | ||
|
||
```python | ||
# code goes here | ||
``` | ||
|
||
**Expected behavior** | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
|
||
If applicable, add screenshots to help explain your problem (drag and drop the image). | ||
|
||
**Platform:** | ||
|
||
***Trame:*** | ||
<!-- Check all that apply --> | ||
- [ ] Version 1.x | ||
- [ ] Version 2.x | ||
|
||
***Device:*** | ||
<!-- Check all that apply --> | ||
- [ ] Desktop | ||
- [ ] Mobile | ||
|
||
***OS:*** | ||
<!-- Check all that apply --> | ||
- [ ] Windows | ||
- [ ] MacOS | ||
- [ ] Linux | ||
- [ ] Android | ||
- [ ] iOS | ||
|
||
***Browsers Affected:*** | ||
<!-- Check all that apply --> | ||
- [ ] Chrome | ||
- [ ] Firefox | ||
- [ ] Microsoft Edge | ||
- [ ] Safari | ||
- [ ] Opera | ||
- [ ] Brave | ||
- [ ] IE 11 | ||
|
||
***py-web-vue version:*** | ||
vMAJOR.MINOR.PATCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Questions and discussions | ||
url: https://github.com/Kitware/trame/discussions | ||
about: Please use the discussions forum if you have questions or need help. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for the project. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Ignoring this template may result in your feature request getting deleted --> | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
|
||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
|
||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
|
||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
|
||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
A clear and concise description of what the problem was and how this pull request solves it. | ||
|
||
fix #ISSUE_NUMBER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: Docker | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
docker: | ||
name: Docker | ||
runs-on: ubuntu-latest | ||
|
||
# Start a local registry to which we will push trame-common, so that | ||
# docker buildx may access it in later steps. | ||
services: | ||
registry: | ||
image: registry | ||
ports: | ||
- 5000:5000 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# To emulate other architectures | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
# For multi-platform builds | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
driver-opts: network=host | ||
|
||
- name: Create month stamp | ||
run: echo "MONTH_STAMP=$(date +%Y-%m)" >> $GITHUB_ENV | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
- name: Build common | ||
uses: docker/build-push-action@v2 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: docker | ||
file: docker/Dockerfile.common | ||
push: true | ||
tags: localhost:5000/trame-common | ||
|
||
- name: Build common (glvnd) | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: docker | ||
file: docker/Dockerfile.common | ||
build-args: BASE_IMAGE=nvidia/opengl:1.2-glvnd-devel-ubuntu20.04 | ||
push: true | ||
tags: localhost:5000/trame-common-glvnd | ||
|
||
- name: Build and push (pip) | ||
uses: docker/build-push-action@v2 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: docker | ||
file: docker/Dockerfile.pip | ||
build-args: BASE_IMAGE=localhost:5000/trame-common | ||
push: true | ||
tags: | | ||
kitware/trame:latest | ||
kitware/trame:ubuntu-20.04-py39 | ||
kitware/trame:${{ env.MONTH_STAMP }} | ||
- name: Build and push (pip glvnd) | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: docker | ||
file: docker/Dockerfile.pip | ||
build-args: BASE_IMAGE=localhost:5000/trame-common-glvnd | ||
push: true | ||
tags: | | ||
kitware/trame:glvnd | ||
kitware/trame:1.2-glvnd-runtime-ubuntu20.04-py39 | ||
kitware/trame:glvnd_${{ env.MONTH_STAMP }} | ||
- name: Build and push (conda) | ||
uses: docker/build-push-action@v2 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: docker | ||
file: docker/Dockerfile.conda | ||
build-args: BASE_IMAGE=localhost:5000/trame-common | ||
push: true | ||
tags: | | ||
kitware/trame:conda | ||
kitware/trame:conda_ubuntu-20.04-py39 | ||
kitware/trame:conda_${{ env.MONTH_STAMP }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: PR Checks | ||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
name: Check and lint PR | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # needed so commitlint can lint the commits | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- run: npm ci | ||
- name: Lint commits | ||
run: npx commitlint --from=${{ github.event.pull_request.base.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: PyPI Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish: | ||
name: PyPI | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: Web tools | ||
run: | | ||
npm ci | ||
- name: Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Install setuptools | ||
run: python -m pip install --upgrade setuptools wheel twine | ||
- name: Release Python | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
git config --global user.name "Github Actions" | ||
git config --global user.email "[email protected]" | ||
npm run semantic-release | ||
- name: Publish distribution 📦 to Test PyPI | ||
continue-on-error: true | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish distribution 📦 to PyPI | ||
continue-on-error: true | ||
# if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: WebSite | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish: | ||
name: Publish WebSite | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Git Setup | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: | | ||
git config --global user.name "Github Actions" | ||
git config --global user.email "[email protected]" | ||
- name: Publish WebSite | ||
if: github.ref == 'refs/heads/master' | ||
env: | ||
GIT_PUBLISH_URL: https://${{ secrets.GH_PUBLISH_CREDS }}@github.com/Kitware/trame.git | ||
run: npm run doc:publish |