Skip to content

Merge pull request #768 from fstagni/nonDepreAction #1441

Merge pull request #768 from fstagni/nonDepreAction

Merge pull request #768 from fstagni/nonDepreAction #1441

Workflow file for this run

name: Basic tests
on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.repository == 'DIRACGrid/WebAppDIRAC'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure
pyLint:
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.repository == 'DIRACGrid/WebAppDIRAC'
defaults:
# Activate the conda environment automatically in each step
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: DIRACGrid/DIRAC
path: .DIRAC
ref: rel-v8r0
- name: Get DIRAC
run: |
[ ! -d "DIRAC" ] && cp -r .DIRAC/src/DIRAC DIRAC
- name: Prepare environment with Micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-file: .DIRAC/environment.yml
- name: Run tests
run: pylint -E src/WebAppDIRAC