fix: getting users and not DNs list #94
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
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@v3 | |
- uses: actions/setup-python@v4 | |
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@v3 | |
- uses: actions/checkout@v3 | |
with: | |
repository: DIRACGrid/DIRAC | |
path: .DIRAC | |
ref: integration | |
- name: Get DIRAC | |
run: | | |
[ ! -d "DIRAC" ] && cp -r .DIRAC/src/DIRAC DIRAC | |
- name: Prepare environment with Micromamba | |
uses: mamba-org/provision-with-micromamba@main | |
with: | |
environment-file: .DIRAC/environment.yml | |
- name: Run tests | |
run: pylint -E src/WebAppDIRAC |