Skip to content

Minor: Added the leetcode problem and solution for 2144, 3120, 3121 a… #1

Minor: Added the leetcode problem and solution for 2144, 3120, 3121 a…

Minor: Added the leetcode problem and solution for 2144, 3120, 3121 a… #1

Workflow file for this run

name: Test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
name: Test (${{ matrix.os }}, Python ${{ matrix.python-version }})
steps:
- name: Set up the repository
uses: actions/checkout@v4
- name: Configure Git to use PAT for private dependencies
run: |
git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf "ssh://git@github.com/"
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-groups
- name: Run Unittests with Coverage
run: |
uv run pytest --cov=app --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}