Merge branch 'main' into updatechecker
This commit is contained in:
commit
960c97ba44
1 changed files with 5 additions and 29 deletions
|
@ -8,41 +8,17 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build and lint:
|
build and lint:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: catthehacker/ubuntu:act-latest
|
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install apt packages
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y \
|
|
||||||
libcairo2-dev \
|
|
||||||
libfreetype6-dev \
|
|
||||||
libffi-dev \
|
|
||||||
libjpeg-dev \
|
|
||||||
libpng-dev \
|
|
||||||
libz-dev \
|
|
||||||
pngquant
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: "12"
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: "3.11"
|
|
||||||
- name: Install Poetry
|
|
||||||
run: curl -sSL https://cdn.seaswimmer.cc/go/poetry | python3.11 -
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
|
||||||
poetry config virtualenvs.create false
|
|
||||||
poetry install --with docs --with dev --no-root
|
poetry install --with docs --with dev --no-root
|
||||||
- name: Build the documentation
|
- name: Build the documentation
|
||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
|
||||||
mkdocs build
|
mkdocs build
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Deploy the documentation to Meli (CoastalCommits Pages)
|
- name: Deploy the documentation to Meli (CoastalCommits Pages)
|
||||||
|
@ -54,11 +30,12 @@ jobs:
|
||||||
unset GITHUB_TOKEN
|
unset GITHUB_TOKEN
|
||||||
unset GITLAB_TOKEN
|
unset GITLAB_TOKEN
|
||||||
|
|
||||||
if [ -n "${{ github.base_ref }}" ]; then
|
echo "${{ github.ref_name }}"
|
||||||
echo "${{ github.base_ref }}"
|
echo "${{ github.base_ref }}"
|
||||||
|
|
||||||
|
if [ -n "${{ github.base_ref }}" ]; then
|
||||||
release="$(basename "${{ github.base_ref }}")"
|
release="$(basename "${{ github.base_ref }}")"
|
||||||
else
|
else
|
||||||
echo "${{ github.ref_name }}"
|
|
||||||
release="$(basename "${{ github.ref_name }}")"
|
release="$(basename "${{ github.ref_name }}")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -77,5 +54,4 @@ jobs:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Analysing the code with Pylint
|
- name: Analysing the code with Pylint
|
||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
||||||
poetry run pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
|
||||||
|
|
Loading…
Reference in a new issue