WIP: Add UpdateChecker cog #14
1 changed files with 17 additions and 7 deletions
|
@ -6,7 +6,20 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build and lint:
|
Lint Code (Pylint):
|
||||||
|
runs-on: docker
|
||||||
|
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: poetry install --with dev --no-root
|
||||||
|
|
||||||
|
- name: Analysing the code with Pylint
|
||||||
|
run: pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
||||||
|
|
||||||
|
Build Documentation (MkDocs):
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -16,18 +29,18 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: poetry install --with docs --with dev --no-root
|
run: poetry install --with docs --no-root
|
||||||
|
|
||||||
- name: Set Environment Variables
|
- name: Set Environment Variables
|
||||||
uses: actions/env@v2
|
uses: actions/env@v2
|
||||||
|
|
||||||
- name: Build the documentation
|
- name: Build documentation
|
||||||
run: |
|
run: |
|
||||||
export SITE_URL="https://$CI_ACTION_REF_NAME_SLUG.seacogs.coastalcommits.com"
|
export SITE_URL="https://$CI_ACTION_REF_NAME_SLUG.seacogs.coastalcommits.com"
|
||||||
mkdocs build -v
|
mkdocs build -v
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Deploy the documentation to Meli (CoastalCommits Pages)
|
- name: Deploy documentation to Meli (CoastalCommits Pages)
|
||||||
run: |
|
run: |
|
||||||
GREEN='\033[0;32m'
|
GREEN='\033[0;32m'
|
||||||
YELLOW='\033[0;33m'
|
YELLOW='\033[0;33m'
|
||||||
|
@ -50,6 +63,3 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }}
|
GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Analysing the code with Pylint
|
|
||||||
run: pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
|
||||||
|
|
Loading…
Reference in a new issue