Skip to content

Commit

Permalink
ci: correctly install dependencies for primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioLoayzaM committed May 30, 2024
1 parent bacb27c commit 2aaf29e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ compile-primitives: # Compile primitives written in C.
cd crypto_condor/primitives && $(MAKE) all -j4
@echo

compile-primitives-ci: # Compile primitives written in C.
@echo "[+] Compiling primitives (CI)"
sudo apt-get install -y --no-install-recommends pandoc texlive texlive-latex-extra
cd crypto_condor/primitives && $(MAKE) all -j4
@echo

copy-guides: # Copy guides from the docs for the method command.
@echo "[+] Copying guides from the documentation"
python utils/copy_guides.py
Expand All @@ -50,6 +56,7 @@ install: # Install using poetry.

ci-setup: # Basic commands to run before the other CI targets.
ci-setup:
@echo "[+] Setup CI"
export PYTHONDONTWRITEBYTECODE=1
export POETRY_VIRTUALENVS_IN_PROJECT=1
python --version
Expand Down Expand Up @@ -104,9 +111,8 @@ coverage: init
pytest --cov="crypto_condor" --cov-report html --numprocesses=auto tests/

coverage-ci: # Run coverage, generate JUnit test report and XML coverage report.
coverage-ci: init-ci compile-primitives
coverage-ci: init-ci compile-primitives-ci
@echo "[+] Testing and checking coverage (CI)"
sudo apt-get install -y --no-install-recommends pandoc texlive texlive-latex-extra
poetry run pytest --verbose --junitxml=junit/test-results.xml --cov="crypto_condor" --cov-report=xml --numprocesses=auto tests/
# Print coverage report so that CI picks up stats
poetry run coverage report
Expand All @@ -120,9 +126,8 @@ build: init
# This is redundant since publish-ci also builds the package, but we use this to check
# for building errors before trying to publish.
build-ci: # Build the package in the CI.
build-ci: init-ci compile-primitives
build-ci: init-ci compile-primitives-ci
@echo "[+] Building package (CI)"
sudo apt-get install -y --no-install-recommends pandoc texlive texlive-latex-extra
# Ensure that the tag and version match to avoid pushing a package without
# the corresponding documentation.
. .venv/bin/activate && python utils/check_tag_and_version.py
Expand Down

0 comments on commit 2aaf29e

Please sign in to comment.