Skip to content

Commit 1d6ca35

Browse files
committed
Uncomment part of tasks tests
1 parent 3c9b168 commit 1d6ca35

File tree

1 file changed

+49
-36
lines changed

1 file changed

+49
-36
lines changed

.github/workflows/ci_poetry.yml

Lines changed: 49 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -53,39 +53,39 @@ 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
56+
tests_tasks:
57+
name: "Tasks, Python ${{ matrix.python-version }}"
58+
runs-on: ubuntu-22.04
59+
timeout-minutes: 30
6060

61-
# strategy:
62-
# matrix:
63-
# python-version: ["3.10", "3.11", "3.12"]
61+
strategy:
62+
matrix:
63+
python-version: ["3.10", "3.11", "3.12"]
6464

65-
# steps:
66-
# - uses: actions/checkout@v4
67-
# with:
68-
# fetch-depth: 1
65+
steps:
66+
- uses: actions/checkout@v4
67+
with:
68+
fetch-depth: 1
6969

70-
# - name: Install poetry
71-
# run: pipx install poetry==1.8.2
70+
- name: Install poetry
71+
run: pipx install poetry==1.8.2
7272

73-
# - name: Configure poetry
74-
# run: poetry config virtualenvs.in-project true
73+
- name: Configure poetry
74+
run: poetry config virtualenvs.in-project true
7575

76-
# - name: Set up Python ${{ matrix.python-version }}
77-
# uses: actions/setup-python@v5
78-
# with:
79-
# python-version: ${{ matrix.python-version }}
76+
- name: Set up Python ${{ matrix.python-version }}
77+
uses: actions/setup-python@v5
78+
with:
79+
python-version: ${{ matrix.python-version }}
8080

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
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
8686

87-
# - name: Install dependencies (including fractal-tasks extra)
88-
# run: poetry install --with dev --without docs --no-interaction -E fractal-tasks
87+
- name: Install dependencies (including fractal-tasks extra)
88+
run: poetry install --with dev --without docs --no-interaction -E fractal-tasks
8989

9090
# - name: Check if manifest has changed
9191
# run: |
@@ -106,21 +106,34 @@ jobs:
106106
# path: ~/.cache/pooch
107107
# key: pooch-cache
108108

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
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
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 }}*
119+
120+
121+
- name: Test core library with pytest
122+
env:
123+
COVERAGE_FILE: coverage-data-core-${{ matrix.python-version }}
124+
run: poetry run coverage run -m pytest tests --ignore tests/tasks --ignore tests/dev
125+
126+
- name: Upload coverage data
127+
uses: actions/upload-artifact@v4
128+
with:
129+
name: coverage-data-core-${{ matrix.python-version }}
130+
path: coverage-data-core-${{ matrix.python-version }}*
113131

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 }}*
119132

120133
coverage:
121134
name: Coverage
122135
runs-on: ubuntu-22.04
123-
needs: [tests_core]
136+
needs: [tests_tasks, tests_core]
124137
steps:
125138
- uses: actions/checkout@v4
126139

0 commit comments

Comments
 (0)