Skip to content

gateway: bump matlab-actions/run-tests from 2.3.1 to 3.0.0 #247

gateway: bump matlab-actions/run-tests from 2.3.1 to 3.0.0

gateway: bump matlab-actions/run-tests from 2.3.1 to 3.0.0 #247

Workflow file for this run

#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
name: Linting and MyPy (Pelican)
on:
push:
paths:
- '**.py'
- '**/linting.yml'
- '**/pylintrc'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
with:
persist-credentials: false
- name: Set up Python environment
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip list
cd pelican
pip install -r requirements.txt --no-deps # Explicit dependency-only installation
pip install mypy types-PyYAML types-requests types-beautifulsoup4 types-markdown pylint
pip list
- name: Type testing with mypy
run: |
cd pelican
mypy --cache-dir /tmp/ --install-types --non-interactive
mypy --cache-dir /tmp/ --ignore-missing-imports .
- name: Code linting with pylint
run: |
cd pelican
pylint **/*.py