Skip to content

Commit 2d0157e

Browse files
update CI
1 parent 34c11bd commit 2d0157e

File tree

3 files changed

+59
-40
lines changed

3 files changed

+59
-40
lines changed

.github/workflows/changelog.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will run on every pull request to the develop branch to do the following:
2+
#
3+
# - Insert the Pull Request URL into new changelog entries.
4+
# - Assert that a new changelog entry has been added in the PR unless a "no changelog" label is added to the PR.
5+
6+
name: "Changelog"
7+
8+
on:
9+
pull_request_target: { branches: [ "develop" ] }
10+
11+
jobs:
12+
changelog-update:
13+
name: "Insert Pull Request URL into new changelog entries"
14+
runs-on: ubuntu-latest
15+
if: github.event_name == 'pull_request_target'
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: NiklasRosenstein/slap@gha/changelog/update/v2
19+
with: { pr-id: '${{ github.event.pull_request.number }}' }
20+
21+
assert-new-changelog-entries:
22+
name: "At least one new changelog entry must be added"
23+
runs-on: ubuntu-latest
24+
if: github.base_ref != '' && !contains(github.event.pull_request.labels.*.name, 'no changelog')
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: NiklasRosenstein/slap@gha/changelog/assert-added/v2
28+
with: { pr-id: '${{ github.event.pull_request.number }}' }

.github/workflows/python.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Python"
2+
3+
on:
4+
push: { branches: [ "develop" ], tags: [ "*" ] }
5+
pull_request: { branches: [ "develop" ] }
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.x"]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: NiklasRosenstein/slap@gha/install/v1
16+
- uses: actions/setup-python@v2
17+
with: { python-version: "${{ matrix.python-version }}" }
18+
- run: slap install --link --no-venv-check
19+
- run: slap test
20+
21+
documentation:
22+
runs-on: ubuntu-20.04
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: NiklasRosenstein/slap@gha/install/v1
26+
- uses: actions/setup-python@v2
27+
with: { python-version: "3.10" }
28+
- run: slap --version && slap install --only-extras docs --no-venv-check
29+
- run: slap run --no-venv-check docs:build
30+
- uses: JamesIves/[email protected]
31+
with: { branch: gh-pages, folder: docs/_site, ssh-key: "${{ secrets.DEPLOY_KEY }}" }

.github/workflows/python.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)