Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

implement reusable workflows #22

Merged
merged 1 commit into from
Jan 17, 2023
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
File renamed without changes.
2 changes: 2 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ jobs:

- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
with:
config-file: darbiadev/.github/.github/dependency-review-config.yaml@main
10 changes: 10 additions & 0 deletions .github/workflows/github-pages-python-sphinx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: GitHub Pages - Python Sphinx

on:
push:
branches:
- main

jobs:
docs:
uses: darbiadev/.github/.github/workflows/github-pages-python-sphinx.yaml@main
48 changes: 0 additions & 48 deletions .github/workflows/github-pages-python-sphinx.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/lint-test.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/precommit-autoupdate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Pre-Commit autoupdate

on:
schedule:
- cron: "0 0 * * *"

jobs:
pre-commit-autoupdate:
uses: darbiadev/.github/.github/workflows/generic-precommit-autoupdate.yaml@main
46 changes: 0 additions & 46 deletions .github/workflows/pypi-publish.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/python-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Python CI

on:
push:
branches:
- main
pull_request:

jobs:
pre-commit:
uses: darbiadev/.github/.github/workflows/generic-precommit.yaml@main

lint:
needs: pre-commit
uses: darbiadev/.github/.github/workflows/python-lint.yaml@main

test:
needs: lint
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ "3.9", "3.10", "3.11" ]

uses: darbiadev/.github/.github/workflows/python-test.yaml@main
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
10 changes: 10 additions & 0 deletions .github/workflows/python-publish-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Python - Publish to PyPI

on:
release:
types: [released]

jobs:
publish:
uses: darbiadev/.github/.github/workflows/python-pypi-publish.yaml@main
secrets: inherit