records: CMS 2016 SIM record skeletons #2386
Workflow file for this run
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, 2024, 2025 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: | |
data-dois: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
- name: Check data DOIs | |
run: ./run-tests.sh --data-dois | |
data-licenses: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Check data licenses | |
run: | | |
./run-tests.sh --data-licenses | |
data-recids: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
- name: Check data record IDs | |
run: ./run-tests.sh --data-recids | |
data-slugs: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
- name: Check data slugs | |
run: ./run-tests.sh --data-slugs | |
data-types: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
- name: Check data types | |
run: ./run-tests.sh --data-types | |
format-black: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Check formatting of Python code | |
run: | | |
pip install black | |
./run-tests.sh --format-black | |
format-isort: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Check formatting of Python imports | |
run: | | |
pip install isort | |
./run-tests.sh --format-isort | |
format-shfmt: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check formatting of shell scripts | |
run: | | |
sudo apt-get install shfmt | |
./run-tests.sh --format-shfmt | |
format-whitespace: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
- name: Check formatting of whitespace | |
run: ./run-tests.sh --format-whitespace | |
lint-flake8: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Check linting of Python code | |
run: | | |
pip install flake8 | |
./run-tests.sh --lint-flake8 | |
lint-jsonlint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
- name: Check linting of JSON files | |
run: | | |
npm install jsonlint --global | |
./run-tests.sh --lint-jsonlint | |
lint-pydocstyle: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Check linting of Python docstrings | |
run: | | |
pip install pydocstyle | |
./run-tests.sh --lint-pydocstyle | |
lint-shellcheck: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check linting of shell scripts | |
run: | | |
sudo apt-get install shellcheck | |
./run-tests.sh --lint-shellcheck | |
lint-yamllint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Lint YAML files | |
run: | | |
pip install yamllint | |
./run-tests.sh --lint-yamllint |