Skip to content

Commit cf2c8de

Browse files
committed
fix: github action
1 parent b20211c commit cf2c8de

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci-cd.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
startsWith(github.ref, 'refs/heads/hotfix/')
5454
runs-on: ubuntu-latest
5555
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
5660
- name: Cache venv
5761
id: cache-python-venv
5862
uses: actions/cache@v3
@@ -70,7 +74,9 @@ jobs:
7074
python -m venv venv/
7175
. venv/bin/activate
7276
pip install --upgrade pip
73-
pip install build 'coverage[toml]' httpx
77+
pip install toml build 'coverage[toml]' httpx
78+
python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join([*c["project"].get("dependencies", []), *[row for optional_dependency in c["project"].get("optional-dependencies", {}).values() for row in optional_dependency]]))' > /tmp/requirements.txt
79+
pip install -r /tmp/requirements.txt
7480
unittest:
7581
name: Unit Test
7682
needs: [jar, venv]

.vscode/tasks.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"args": [
2020
"-m", "pip", "install",
2121
"twine",
22+
"toml",
2223
"build",
2324
"'coverage[toml]'",
2425
"httpx",

0 commit comments

Comments
 (0)