Skip to content

Enhance Backup Automation and Documentation #13

Enhance Backup Automation and Documentation

Enhance Backup Automation and Documentation #13

Workflow file for this run

name: pull request lint and test

Check failure on line 1 in .github/workflows/pull.yml

View workflow run for this annotation

GitHub Actions / pull request lint and test

Invalid workflow file

The workflow is not valid. .github/workflows/pull.yml: Unexpected tag '!startsWith('graal','
on:
pull_request:
workflow_dispatch:
env:
PYTHON_VERSION: "3.11"
permissions:
contents: read
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.actor || github.repository_owner }}
cancel-in-progress: false
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: "${{ env.PYTHON_VERSION }}"
- name: Cache pip dependencies
if: !startsWith('graal', env.PYTHON_VERSION) && github.actor == github.repository_owner
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ env.PYTHON_VERSION }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ env.PYTHON_VERSION }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics
- name: Run tests
if: false # TODO no unittests for now
run: |
pytest