Skip to content

Commit 1e47072

Browse files
committed
Comment tasks tests
1 parent 9dcf240 commit 1e47072

File tree

1 file changed

+63
-63
lines changed

1 file changed

+63
-63
lines changed

.github/workflows/ci_poetry.yml

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -53,69 +53,69 @@ jobs:
5353
name: coverage-data-core-${{ matrix.python-version }}
5454
path: coverage-data-core-${{ matrix.python-version }}*
5555

56-
tests_tasks:
57-
name: "Tasks, Python ${{ matrix.python-version }}"
58-
runs-on: ubuntu-22.04
59-
timeout-minutes: 30
60-
61-
strategy:
62-
matrix:
63-
python-version: ["3.10", "3.11", "3.12"]
64-
65-
steps:
66-
- uses: actions/checkout@v4
67-
with:
68-
fetch-depth: 1
69-
70-
- name: Install poetry
71-
run: pipx install poetry==1.8.2
72-
73-
- name: Configure poetry
74-
run: poetry config virtualenvs.in-project true
75-
76-
- name: Set up Python ${{ matrix.python-version }}
77-
uses: actions/setup-python@v5
78-
with:
79-
python-version: ${{ matrix.python-version }}
80-
81-
# - name: Cache poetry virtualenv
82-
# uses: actions/cache@v4
83-
# with:
84-
# path: ./.venv
85-
# key: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }}-tests_tasks
86-
87-
- name: Install dependencies (including fractal-tasks extra)
88-
run: poetry install --with dev --without docs --no-interaction -E fractal-tasks
89-
90-
- name: Check if manifest has changed
91-
run: |
92-
poetry run python fractal_tasks_core/dev/create_manifest.py
93-
echo "*.json diff=json" >> .gitattributes && git config diff.json.textconv "jq --sort-keys '.' \$1"
94-
git diff ./fractal_tasks_core/__FRACTAL_MANIFEST__.json
95-
if [ -n "$(git diff --exit-code ./fractal_tasks_core/__FRACTAL_MANIFEST__.json)" ]; then
96-
echo "__FRACTAL_MANIFEST__.json has changed. Please run 'poetry run python fractal_tasks_core/dev/create_manifest.py' and commit the changes."
97-
exit 1
98-
else
99-
echo "__FRACTAL_MANIFEST__.json has not changed."
100-
fi
101-
102-
- name: Cache Pooch folder
103-
id: cache-pooch-folder
104-
uses: actions/cache@v4
105-
with:
106-
path: ~/.cache/pooch
107-
key: pooch-cache
108-
109-
- name: Test tasks with pytest
110-
env:
111-
COVERAGE_FILE: coverage-data-tasks-${{ matrix.python-version }}
112-
run: poetry run coverage run -m pytest tests/dev --ignore tests/tasks --log-cli-level info
113-
114-
- name: Upload coverage data
115-
uses: actions/upload-artifact@v4
116-
with:
117-
name: coverage-data-tasks-${{ matrix.python-version }}
118-
path: coverage-data-tasks-${{ matrix.python-version }}*
56+
# tests_tasks:
57+
# name: "Tasks, Python ${{ matrix.python-version }}"
58+
# runs-on: ubuntu-22.04
59+
# timeout-minutes: 30
60+
61+
# strategy:
62+
# matrix:
63+
# python-version: ["3.10", "3.11", "3.12"]
64+
65+
# steps:
66+
# - uses: actions/checkout@v4
67+
# with:
68+
# fetch-depth: 1
69+
70+
# - name: Install poetry
71+
# run: pipx install poetry==1.8.2
72+
73+
# - name: Configure poetry
74+
# run: poetry config virtualenvs.in-project true
75+
76+
# - name: Set up Python ${{ matrix.python-version }}
77+
# uses: actions/setup-python@v5
78+
# with:
79+
# python-version: ${{ matrix.python-version }}
80+
81+
# # - name: Cache poetry virtualenv
82+
# # uses: actions/cache@v4
83+
# # with:
84+
# # path: ./.venv
85+
# # key: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }}-tests_tasks
86+
87+
# - name: Install dependencies (including fractal-tasks extra)
88+
# run: poetry install --with dev --without docs --no-interaction -E fractal-tasks
89+
90+
# - name: Check if manifest has changed
91+
# run: |
92+
# poetry run python fractal_tasks_core/dev/create_manifest.py
93+
# echo "*.json diff=json" >> .gitattributes && git config diff.json.textconv "jq --sort-keys '.' \$1"
94+
# git diff ./fractal_tasks_core/__FRACTAL_MANIFEST__.json
95+
# if [ -n "$(git diff --exit-code ./fractal_tasks_core/__FRACTAL_MANIFEST__.json)" ]; then
96+
# echo "__FRACTAL_MANIFEST__.json has changed. Please run 'poetry run python fractal_tasks_core/dev/create_manifest.py' and commit the changes."
97+
# exit 1
98+
# else
99+
# echo "__FRACTAL_MANIFEST__.json has not changed."
100+
# fi
101+
102+
# - name: Cache Pooch folder
103+
# id: cache-pooch-folder
104+
# uses: actions/cache@v4
105+
# with:
106+
# path: ~/.cache/pooch
107+
# key: pooch-cache
108+
109+
# - name: Test tasks with pytest
110+
# env:
111+
# COVERAGE_FILE: coverage-data-tasks-${{ matrix.python-version }}
112+
# run: poetry run coverage run -m pytest tests/dev --ignore tests/tasks --log-cli-level info
113+
114+
# - name: Upload coverage data
115+
# uses: actions/upload-artifact@v4
116+
# with:
117+
# name: coverage-data-tasks-${{ matrix.python-version }}
118+
# path: coverage-data-tasks-${{ matrix.python-version }}*
119119

120120
coverage:
121121
name: Coverage

0 commit comments

Comments
 (0)