Skip to content

Commit 9ebe710

Browse files
committed
revert ci-cd
1 parent 91524a4 commit 9ebe710

File tree

1 file changed

+34
-29
lines changed

1 file changed

+34
-29
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,11 @@ jobs:
5252

5353
# Build Python and packages per https://github.com/actions/setup-python
5454
# Using actions/setup-python can be faster than uv, because GitHub caches the Python versions alongside the runner.
55-
# - name: Set up Python ${{ matrix.python-version }}
56-
# uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
57-
# with:
58-
# python-version: ${{ matrix.python-version }}
59-
# allow-prereleases: true
60-
61-
# Install uv per https://github.com/astral-sh/setup-uv/blob/main/README.md
62-
# and https://docs.astral.sh/uv/guides/integration/github
63-
# Caching is enabled on GitHub-hosted runners
64-
- name: Set up uv
65-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
55+
- name: Set up Python ${{ matrix.python-version }}
56+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6657
with:
6758
python-version: ${{ matrix.python-version }}
59+
allow-prereleases: true
6860

6961
- name: Install redis, pdf2text and ocr dependencies (Linux w/latest Python)
7062
# Redis easily installable on Unbuntu
@@ -120,19 +112,28 @@ jobs:
120112
# # Install Python packages
121113
# uv pip install --upgrade pdftotext pytesseract
122114

123-
# - name: Install all other dependencies (GIL)
124-
# if: ${{ ! endsWith(matrix.python-version, 't') }}
125-
# run: >
126-
# uv pip install
127-
# --upgrade
128-
# coveralls
129-
# -r tests/requirements_pytest.txt
115+
# Install uv per https://github.com/astral-sh/setup-uv/blob/main/README.md
116+
# and https://docs.astral.sh/uv/guides/integration/github
117+
# Caching is enabled on GitHub-hosted runners
118+
- name: Set up uv
119+
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
120+
with:
121+
python-version: ${{ matrix.python-version }}
122+
123+
124+
- name: Install all other dependencies (GIL)
125+
if: ${{ ! endsWith(matrix.python-version, 't') }}
126+
run: >
127+
uv pip install
128+
--upgrade
129+
coveralls
130+
-r tests/requirements_pytest.txt
130131
131132
- name: Run tests (GIL)
132133
if: ${{ ! endsWith(matrix.python-version, 't') }}
133134
# python -m required to get it to run in the correct directory; '>' folded style scalar (allows splitting line)
134135
run: >
135-
uv run --with-requirements tests/requirements_pytest.txt
136+
uv run --no-project
136137
pytest
137138
-v
138139
--cov=./
@@ -141,20 +142,24 @@ jobs:
141142
--browser-channel chrome
142143
tests/
143144
144-
# - name: Install all other dependencies (free-threaded)
145-
# if: ${{ endsWith(matrix.python-version, 't') }}
146-
# run: >
147-
# uv pip install
148-
# --upgrade
149-
# coveralls
150-
# -r tests/requirements_pytest_free-threaded.txt
145+
- name: Install all other dependencies (free-threaded)
146+
if: ${{ endsWith(matrix.python-version, 't') }}
147+
run: >
148+
uv pip install
149+
--upgrade
150+
coveralls
151+
-r tests/requirements_pytest_free-threaded.txt
151152
152153
- name: Run tests (free-threaded)
153154
if: ${{ endsWith(matrix.python-version, 't') }}
154155
# python -m required to get it to run in the correct directory; '>' folded style scalar (allows splitting line)
155-
run: |
156-
apt-get install libxml2-dev libxslt-dev
157-
uv run --with-requirements tests/requirements_pytest_free-threaded.txt pytest -v --cov=./ --cov-report=term tests/
156+
run: >
157+
uv run --no-project
158+
pytest
159+
-v
160+
--cov=./
161+
--cov-report=term
162+
tests/
158163
159164
- name: Upload coverage data to coveralls.io (parallel)
160165
run: coveralls --service=github

0 commit comments

Comments
 (0)