|
4 | 4 | pull_request:
|
5 | 5 | types: [opened, synchronize, reopened]
|
6 | 6 | push:
|
7 |
| - branches: |
8 |
| - - develop |
9 |
| - schedule: |
10 |
| - - cron: "9 2 * * 0" # at 9:02 on sunday |
| 7 | + |
11 | 8 |
|
12 | 9 | jobs:
|
13 | 10 | quality:
|
@@ -37,68 +34,46 @@ jobs:
|
37 | 34 | - name: Detect changed packages
|
38 | 35 | id: changed-packages
|
39 | 36 | run: |
|
40 |
| - CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }}) |
| 37 | + CHANGED_FILES=$(git diff --name-only ${{ github.sha }} ${{ github.sha }}) # temporarily disabled |
41 | 38 | echo "training_changed=$(echo "$CHANGED_FILES" | grep -q '^training/.*\.py$' && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
|
42 | 39 | echo "graphs_changed=$(echo "$CHANGED_FILES" | grep -q '^graphs/.*\.py$' && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
|
43 | 40 | echo "models_changed=$(echo "$CHANGED_FILES" | grep -q '^models/.*\.py$' && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
|
44 | 41 |
|
45 |
| - - name: Install training package |
46 |
| - run: | |
47 |
| - if [[ ${{ steps.changed-packages.outputs.training_changed }} == 'true' ]]; then |
48 |
| - echo "Installing training from local source" |
49 |
| - pip install -e ./training[tests] |
50 |
| - else |
51 |
| - echo "Installing training from PyPI" |
52 |
| - pip install anemoi-training[tests] |
53 |
| - fi |
| 42 | + - name: Install core packages |
| 43 | + run: pip install -e ./graphs/[tests] -e ./training/[tests] -e ./models/[tests] |
54 | 44 |
|
55 |
| - - name: Install graphs package |
56 |
| - run: | |
57 |
| - if [[ ${{ steps.changed-packages.outputs.graphs_changed }} == 'true' ]]; then |
58 |
| - echo "Installing graphs from local source" |
59 |
| - pip install -e ./graphs[tests] |
60 |
| - else |
61 |
| - echo "Installing graphs from PyPI" |
62 |
| - pip install anemoi-graphs[tests] |
63 |
| - fi |
| 45 | + - name: Run integration tests |
| 46 | + run: pytest tests |
64 | 47 |
|
65 |
| - - name: Install models package |
66 |
| - run: | |
67 |
| - if [[ ${{ steps.changed-packages.outputs.models_changed }} == 'true' ]]; then |
68 |
| - echo "Installing models from local source" |
69 |
| - pip install -e ./models[tests] |
70 |
| - else |
71 |
| - echo "Installing models from PyPI" |
72 |
| - pip install anemoi-models[tests] |
73 |
| - fi |
74 | 48 |
|
75 |
| - - name: Run pytest for changed training package |
76 |
| - if: steps.changed-packages.outputs.training_changed == 'true' |
77 |
| - uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2 |
78 |
| - with: |
79 |
| - python-version: ${{ matrix.python-version }} |
80 |
| - install-dependencies: false |
81 |
| - custom-pytest: pytest training/tests |
| 49 | +# - name: Run pytest for changed training package |
| 50 | +# if: steps.changed-packages.outputs.training_changed == 'true' |
| 51 | +# uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2 |
| 52 | +# with: |
| 53 | +# python-version: ${{ matrix.python-version }} |
| 54 | +# install-dependencies: false |
| 55 | +# custom-pytest: pytest training/tests |
82 | 56 |
|
83 |
| - - name: Run pytest for changed graphs package |
84 |
| - if: steps.changed-packages.outputs.graphs_changed == 'true' |
85 |
| - uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2 |
86 |
| - with: |
87 |
| - python-version: ${{ matrix.python-version }} |
88 |
| - install-dependencies: false |
89 |
| - custom-pytest: pytest graphs/tests |
| 57 | +# - name: Run pytest for changed graphs package |
| 58 | +# if: steps.changed-packages.outputs.graphs_changed == 'true' |
| 59 | +# uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2 |
| 60 | +# with: |
| 61 | +# python-version: ${{ matrix.python-version }} |
| 62 | +# install-dependencies: false |
| 63 | +# custom-pytest: pytest graphs/tests |
90 | 64 |
|
91 |
| - - name: Run pytest for changed models package |
92 |
| - if: steps.changed-packages.outputs.models_changed == 'true' |
93 |
| - uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2 |
94 |
| - with: |
95 |
| - python-version: ${{ matrix.python-version }} |
96 |
| - install-dependencies: false |
97 |
| - custom-pytest: pytest models/tests |
| 65 | +# - name: Run pytest for changed models package |
| 66 | +# if: steps.changed-packages.outputs.models_changed == 'true' |
| 67 | +# uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2 |
| 68 | +# with: |
| 69 | +# python-version: ${{ matrix.python-version }} |
| 70 | +# install-dependencies: false |
| 71 | +# custom-pytest: pytest models/tests |
98 | 72 |
|
99 |
| - - name: Run integration tests |
100 |
| - if: success() |
101 |
| - uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2 |
102 |
| - with: |
103 |
| - python-version: ${{ matrix.python-version }} |
104 |
| - install-dependencies: false |
| 73 | +# - name: Run integration tests |
| 74 | +# if: success() |
| 75 | +# uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2 |
| 76 | +# with: |
| 77 | +# python-version: ${{ matrix.python-version }} |
| 78 | +# install-dependencies: false |
| 79 | +# custom-pytest: pytest tests |
0 commit comments