Skip to content

Main-CI-Nightly

Main-CI-Nightly #1

Workflow file for this run

name: Main-CI-Nightly
on:
schedule:
- cron: '30 23 * * *' # Uses ubuntu runner.
workflow_dispatch: # Uses ubuntu runner.
env:
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"
jobs:
codecov:
runs-on: starkware-ubuntu-latest-large
steps:
- uses: actions/checkout@v4
with:
# Fetch the entire history.
fetch-depth: 0
- uses: ./.github/actions/bootstrap
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- run: npm install -g ganache@7.4.3
# Setup pypy and link to the location expected by .cargo/config.toml.
- uses: actions/setup-python@v5
id: setup-pypy
with:
python-version: "pypy3.9"
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
- env:
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
- name: "Run codecov on pull request"
id: run_codecov_pr
run: |
python3 -m venv ci
ci/bin/pip install -r scripts/requirements.txt
ci/bin/python scripts/run_tests.py --command codecov --changes_only --commit_id ${{ github.event.pull_request.base.sha }}
if [ -f codecov.json ]; then
echo "codecov_output=true" >> $GITHUB_OUTPUT
else
echo "codecov_output=false" >> $GITHUB_OUTPUT
fi
env:
SEED: 0
- name: Codecov
if: steps.run_codecov_pr.outputs.codecov_output == 'true'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: true
version: "v0.1.15"