Skip to content

Sync opencraft-release/quince.1 with Upstream 20241125-1732494129 #646

Sync opencraft-release/quince.1 with Upstream 20241125-1732494129

Sync opencraft-release/quince.1 with Upstream 20241125-1732494129 #646

name: Static analysis
on: pull_request
jobs:
tests:
name: Static analysis
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.8']
os: ['ubuntu-20.04']
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install system requirements
run: sudo apt update && sudo apt install -y libxmlsec1-dev
- name: Install pip
run: python -m pip install -r requirements/pip.txt
- name: Get pip cache dir
id: pip-cache-dir
run: echo "::set-output name=dir::$(pip cache dir)"
- name: Cache pip dependencies
id: cache-dependencies
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache-dir.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/edx/development.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install python dependencies
run: make dev-requirements
- name: Static code analysis
run: make check-types