-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MRG: Merge pull request #12 from octue/devops/deploy-with-namespace
Clean up service
- Loading branch information
Showing
20 changed files
with
1,340 additions
and
142 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,24 +1,21 @@ | ||
name: python-ci | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
jobs: | ||
|
||
check-semantic-version: | ||
if: "!contains(github.event.head_commit.message, 'skipci')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
# Set fetch-depth to 0 to fetch all tags (necessary for git-mkver to determine the correct semantic version). | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
- name: Install git-mkver | ||
run: | | ||
curl -L https://github.com/idc101/git-mkver/releases/download/v1.2.1/git-mkver-linux-amd64-1.2.1.tar.gz \ | ||
| tar xvz \ | ||
&& sudo mv git-mkver /usr/local/bin | ||
- name: Install semantic version checker | ||
run: pip install git+https://github.com/octue/conventional-commits | ||
- name: Check version | ||
run: check-semantic-version setup.py | ||
|
||
- uses: octue/check-semantic-version@1.0.0.beta-9 | ||
with: | ||
path: pyproject.toml | ||
breaking_change_indicated_by: minor |
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
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
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,70 @@ | ||
exclude: "build|.git/|.tox|dist|octue.egg-info" | ||
default_stages: [commit] | ||
fail_fast: true | ||
default_language_version: | ||
python: python3 # force all unspecified python hooks to run python3 | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.6.0 | ||
hooks: | ||
- id: black | ||
args: ["--line-length", "120"] | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
language_version: python3 | ||
additional_dependencies: | ||
- "pep8-naming" | ||
args: | ||
- --ignore-names=setUp,tearDown,setUpClass,tearDownClass,asyncSetUp,asyncTearDown,setUpTestData,failureException,longMessage,maxDiff,startTestRun,stopTestRun | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.7.1 | ||
hooks: | ||
- id: prettier | ||
|
||
- repo: https://github.com/pycqa/pydocstyle | ||
rev: 6.1.1 | ||
hooks: | ||
- id: pydocstyle | ||
|
||
- repo: https://github.com/windpioneers/pre-commit-hooks | ||
rev: 0.0.5 | ||
hooks: | ||
- id: check-branch-name | ||
args: | ||
- "^main$" | ||
- "^development$" | ||
- "^devops/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^doc/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^feature/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^enhancement/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^fix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^hotfix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^review/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^refactor/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^test/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^style/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^deprecation/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^dependencies/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
|
||
- repo: https://github.com/octue/conventional-commits | ||
rev: 0.8.1 | ||
hooks: | ||
- id: check-commit-message-is-conventional | ||
stages: [commit-msg] |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# example-service-cloud-run | ||
Trying to get cloud run to deploy a template service | ||
|
||
An example Octue service for deploying to Google Cloud Run. Questions can be sent to it at `octue/example-service-cloud-run:latest`. |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"output_location": "gs://octue-sdk-python-test-bucket/example_output_datasets" | ||
"output_location": "gs://octue-sdk-python-test-bucket/example_output_datasets" | ||
} |
File renamed without changes.
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.