docs: finals fixes for VM in 2013 getting started #1285
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 is part of CERN Open Data Portal. | |
# Copyright (C) 2020, 2023 CERN. | |
# | |
# CERN Open Data Portal is free software; you can redistribute it | |
# and/or modify it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 2 of the | |
# License, or (at your option) any later version. | |
# | |
# CERN Open Data Portal is distributed in the hope that it will be | |
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
# General Public License for more details. | |
# | |
# You should have received a copy of the GNU General Public License | |
# along with CERN Open Data Portal; if not, write to the | |
# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, | |
# MA 02111-1307, USA. | |
# | |
# In applying this license, CERN does not | |
# waive the privileges and immunities granted to it by virtue of its status | |
# as an Intergovernmental Organization or submit itself to any jurisdiction. | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
lint-shellcheck: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Runs shell script static analysis | |
run: | | |
sudo apt-get install shellcheck | |
./run-tests.sh --check-shellscript | |
lint-pycodestyle: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check compliance with Python coding style conventions | |
run: | | |
pip install --upgrade "pip<20.3" | |
pip install --upgrade "setuptools<=44.0.0" | |
pip install pycodestyle | |
./run-tests.sh --check-pycodestyle | |
lint-pydocstyle: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check compliance with Python docstring conventions | |
run: | | |
pip install --upgrade "pip<20.3" | |
pip install --upgrade "setuptools<=44.0.0" | |
pip install pydocstyle | |
./run-tests.sh --check-pydocstyle | |
lint-check-manifest: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check Python manifest completeness | |
run: | | |
pip install --upgrade "pip<20.3" | |
pip install --upgrade "setuptools<=44.0.0" | |
pip install check-manifest | |
./run-tests.sh --check-manifest | |
check-fixtures: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "14" | |
- name: Install Node dependencies | |
run: npm install -g jsonlint | |
- name: Check fixtures | |
run: ./run-tests.sh --check-fixtures | |
check-isort: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check isort | |
run: | | |
pip install --upgrade "pip<20.3" | |
pip install --upgrade "setuptools<=44.0.0" | |
pip install isort | |
./run-tests.sh --check-isort | |
docker-build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Lint Dockerfile | |
run: docker run -i --rm hadolint/hadolint:v1.18.2 < Dockerfile | |
- name: Create certificates | |
run: ./scripts/generate-localhost-certificate.sh | |
- name: Build docker | |
run: ./run-tests.sh --check-docker-build | |
- name: Run pytest | |
run: docker-compose run --rm web ./run-tests.sh --check-pytest | |
- name: Codecov Coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: coverage.xml |