-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload coverage report only for python 3.12
- Loading branch information
1 parent
e666a60
commit 7cdfca5
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,29 +36,37 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install monorepo packages | ||
run: npm i | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# cache: 'pip' # fails if you don´t have requirements.txt on root. | ||
|
||
- name: Install poetry | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m venv $GITHUB_WORKSPACE/venv \ | ||
&& $GITHUB_WORKSPACE/venv/bin/pip install -U pip setuptools \ | ||
&& $GITHUB_WORKSPACE/venv/bin/pip install poetry==1.8.3 | ||
echo "$GITHUB_WORKSPACE/venv/bin" >> $GITHUB_PATH | ||
- name: Install libs and packages | ||
run: npm run install-all | ||
|
||
- name: Test all projects | ||
run: npm run test | ||
|
||
- name: Upload coverage reports to Codecov | ||
if: ${{ matrix.python-version == '3.12' }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|