From 08cd4587952697278a0f674f97c544a8507c50dc Mon Sep 17 00:00:00 2001 From: Kushagra9399 <146541055+Kushagra9399@users.noreply.github.com> Date: Thu, 6 Mar 2025 22:27:25 +0530 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77e81bac..97e5abd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,33 +28,30 @@ jobs: - name: Upgrade pip version run: | python -m pip install --upgrade pip - - name: Install requirements run: | pip install -r requirements.txt pip install -r docs/requirements.txt - + - name: Install lcov run: | sudo apt-get update sudo apt-get install -y lcov - - name: Build package run: | CXXFLAGS=--coverage CFLAGS=--coverage python scripts/build/install.py -# coverage tests + + # coverage tests - name: Run tests run: | python -m pytest --doctest-modules --cov=./ --cov-report=xml -s - - name: Capture Coverage Data with lcov run: | lcov --capture --directory . --output-file coverage.info --no-external - + - name: Generate HTML Coverage Report with genhtml run: | genhtml coverage.info --output-directory coverage_report - - name: Upload Coverage uses: codecov/codecov-action@v3 with: @@ -94,20 +91,16 @@ jobs: - name: Upgrade pip version run: | python -m pip install --upgrade pip - - name: Install requirements run: | pip install -r requirements.txt pip install -r docs/requirements.txt - - name: Build package run: | python scripts/build/install.py - - name: Run tests run: | python -c "import pydatastructs; pydatastructs.test(only_benchmarks=True)" - - name: Build Documentation run: | sphinx-build -b html docs/source/ docs/build/html @@ -135,20 +128,16 @@ jobs: - name: Upgrade pip version run: | python -m pip install --upgrade pip - - name: Install requirements run: | pip install -r requirements.txt pip install -r docs/requirements.txt - - name: Build package run: | python scripts/build/install.py - - name: Run tests run: | python -c "import pydatastructs; pydatastructs.test()" - - name: Build Documentation run: | sphinx-build -b html docs/source/ docs/build/html @@ -171,32 +160,34 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Setup conda + - name: Setup conda (with updated configuration) uses: s-weigand/setup-conda@v1 with: update-conda: true python-version: ${{ matrix.python-version }} - conda-channels: anaconda, conda-forge - - run: conda --version - - run: which python + conda-channels: conda-forge, defaults + + - name: Check Conda Version + run: | + conda --version + + - name: Check Conda Info + run: | + conda info - name: Upgrade pip version run: | python -m pip install --upgrade pip - - name: Install requirements run: | pip install -r requirements.txt pip install -r docs/requirements.txt - - name: Build package run: | python scripts/build/install.py - - name: Run tests run: | python -c "import pydatastructs; pydatastructs.test()" - - name: Build Documentation run: | sphinx-build -b html docs/source/ docs/build/html