Skip to content

Commit

Permalink
Upload coverage report only for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
rdgfuentes committed Jun 28, 2024
1 parent e666a60 commit 7cdfca5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 7cdfca5

Please sign in to comment.