Skip to content

Commit

Permalink
camply 0.1.9 (#37)
Browse files Browse the repository at this point in the history
* 2022 update

* CI/CD

* underscores

* keywords

* newline

* updated testing badge and schedule

* updated tests

* updated tests name

* docker test name
  • Loading branch information
juftin authored Oct 19, 2021
1 parent 7abd143 commit 5406f2b
Show file tree
Hide file tree
Showing 43 changed files with 4,560 additions and 369 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github: juftin
custom: [ "https://paypal.me/juftin", "https://venmo.com/juftin" ]
custom: [ "https://paypal.me/juftin", "https://venmo.com/juftin" ]
3 changes: 3 additions & 0 deletions .github/config/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: "plugin:markdown/recommended"
};
22 changes: 22 additions & 0 deletions .github/config/yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
extends: default
rules:
comments-indentation: disable
document-start: disable
brackets:
max-spaces-inside: 1
braces:
max-spaces-inside: 1
colons:
max-spaces-after: -1
hyphens:
max-spaces-after: 3
indentation:
indent-sequences: consistent
line-length:
level: warning
allow-non-breakable-inline-mappings: true
max: 120
truthy:
check-keys: false
ignore: |
tests/models/cassettes/
18 changes: 18 additions & 0 deletions .github/matchers/eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "eslint",
"pattern": [
{
"regexp": "^(.+):\\sline\\s(\\d+),\\scol\\s(\\d+),\\s(Error|Warning|Info)\\s-\\s(.+)\\s\\((.+)\\)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
"code": 6
}
]
}
]
}
16 changes: 16 additions & 0 deletions .github/matchers/flake8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "flake8",
"pattern": [
{
"regexp": "^(.*?):(\\d+):(\\d+): (.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
]
}
]
}
17 changes: 17 additions & 0 deletions .github/matchers/markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"problemMatcher": [
{
"owner": "markdownlint",
"pattern": [
{
"regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$",
"file": 1,
"line": 2,
"column": 3,
"code": 4,
"message": 5
}
]
}
]
}
16 changes: 16 additions & 0 deletions .github/matchers/mypy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "mypy",
"pattern": [
{
"regexp": "^(.+):(\\d+):\\s(error|warning|note):\\s(.+)$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4
}
]
}
]
}
18 changes: 18 additions & 0 deletions .github/matchers/python.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "python",
"pattern": [
{
"regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$",
"file": 1,
"line": 2
},
{
"regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$",
"message": 2
}
]
}
]
}
22 changes: 22 additions & 0 deletions .github/matchers/yamllint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"problemMatcher": [
{
"owner": "yamllint",
"pattern": [
{
"regexp": "^(.*\\.ya?ml)$",
"file": 1
},
{
"regexp": "^\\s{2}(\\d+):(\\d+)\\s+(error|warning)\\s+(.*?)\\s+\\((.*)\\)$",
"line": 1,
"column": 2,
"severity": 3,
"message": 4,
"code": 5,
"loop": true
}
]
}
]
}
24 changes: 24 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name-template: "v$RESOLVED_VERSION 🌈"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "🚀 Features"
labels:
- "feature"
- "enhancement"
- title: "🐛 Bug Fixes"
labels:
- "fix"
- "bugfix"
- "bug"
- title: "🧰 Maintenance"
label: "chore"
- title: "🧪 Tests"
label: "tests"
- title: "📜 Documentation"
label: "documentation"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&'
template: |
## Changes
$CHANGES
49 changes: 0 additions & 49 deletions .github/workflows/camply-publishing.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/docker-image-ci.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Docker CI/CD

on:
pull_request:
branches: [ "**" ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Github Workspace
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Docker Image Building and Publishing
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
tags: juftin/camply:latest
68 changes: 68 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Lint

on:
pull_request:
branches: [ "**" ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up Github Workspace
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python Environment 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup Node Dependency
uses: actions/setup-node@v2
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install tox
- name: Install Node Dependencies
run: |
npm i -g eslint eslint-plugin-markdown
npm install eslint-plugin-markdown@latest --save-dev
- name: Lint with Flake8
id: flake8
continue-on-error: true
run: |
echo "::add-matcher::.github/matchers/flake8.json"
tox -e flake8
echo "::remove-matcher owner=flake8::"
- name: Lint with YAML-Lint
id: yamllint
continue-on-error: true
run: |
echo "::add-matcher::.github/matchers/yamllint.json"
tox -e yamllint
echo "::remove-matcher owner=yamllint::"
- name: Lint with MyPy
id: mypy
continue-on-error: true
run: |
echo "::add-matcher::.github/matchers/mypy.json"
tox -e mypy
echo "::remove-matcher owner=mypy::"
- name: Lint with ESLint
id: eslint
continue-on-error: true
run: |
echo "::add-matcher::.github/matchers/eslint.json"
eslint . --config "${{ github.workspace }}/.github/config/.eslintrc.js"
echo "::remove-matcher owner=eslint::"
- name: (Don't actualy) Raise Errors For Linting Failures
if: |
steps.flake8.outcome != 'success' ||
steps.yamllint.outcome != 'success' ||
steps.mypy.outcome != 'success' ||
steps.eslint.outcome != 'success'
run: |
echo "Flake8: ${{ steps.flake8.outcome }}"
echo "YAML-Lint: ${{ steps.yamllint.outcome }}"
echo "MyPy: ${{ steps.mypy.outcome }}"
echo "ESLint: ${{ steps.eslint.outcome }}"
echo "I Should be Raising an Error"
Loading

0 comments on commit 5406f2b

Please sign in to comment.