Skip to content

Update ci.yml #598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 6 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -171,32 +160,28 @@ 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 # This fails due to unknown reasons
- run: which python

- 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
Loading