fix "clearline" command #11
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
# SPDX-FileCopyrightText: 2024 Benedikt Franke <benedikt.franke@dlr.de> | |
# SPDX-FileCopyrightText: 2024 Florian Heinrich <florian.heinrich@dlr.de> | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Main | |
on: | |
- push | |
- pull_request | |
jobs: | |
lint-code: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install dependencies | |
run: bash ./dev install -e ".[all]" | |
- name: Start static code analysis | |
run: bash ./dev lint-code | |
lint-doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/hydrogen' | |
- name: Install dependencies | |
run: npm install markdownlint-cli2 | |
- name: Start type checking | |
run: bash ./dev lint-doc | |
lint-scripts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start shell script analysis tool | |
run: bash ./dev lint-scripts | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install dependencies | |
run: bash ./dev install -e ".[all]" | |
- name: Start type checking | |
run: bash ./dev mypy | |
license-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install dependencies | |
run: bash ./dev install -e ".[all]" | |
- name: Start license check | |
run: bash ./dev licenses | |
build-pages: | |
needs: [lint-code, lint-doc, lint-scripts, mypy, license-check] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install dependencies | |
run: bash ./dev install -e ".[all]" | |
- name: Build pages | |
run: bash ./dev doc-build | |
- name: Fix permissions | |
run: | | |
chmod -c -R +rX "site/" | while read line; do | |
echo "::warning title=Invalid file permissions automatically fixed::$line" | |
done | |
- name: Upload Pages artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: site | |
deploy-pages: | |
if: contains(github.ref, 'main') | |
needs: [build-pages] | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v3 |