forked from DIRACGrid/DIRAC
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.12 KB
/
basic.yml
File metadata and controls
39 lines (35 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Basic tests
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.repository == 'DIRACGrid/DIRAC'
timeout-minutes: 30
strategy:
fail-fast: False
matrix:
command:
- pytest --runslow
# TODO This should cover more than just tests/CI
# Excluded codes related to sourcing files
# SC1090: Can't follow non-constant source
# SC1091: Not following sourced file
- tests/runPylint.sh
- tests/py3Check.sh
- CHECK=pylintPY3K tests/runPylint.sh
steps:
- uses: actions/checkout@v2
- name: Fail-fast for outdated pipelines
run: .github/workflows/fail-fast.sh
- name: Prepare environment
run: |
conda env create --name dirac-testing environment.yml
- name: Run tests
run: |
source "${CONDA}/bin/activate"
conda activate dirac-testing
set -euxo pipefail
export PYTHONPATH=${PWD}/src
${{ matrix.command }}
env:
REFERENCE_BRANCH: ${{ github['base_ref'] || github['head_ref'] }}