Skip to content

Create codeql-analysis.yml #1481

Create codeql-analysis.yml

Create codeql-analysis.yml #1481

Workflow file for this run

name: Plot k=27
on: [push, pull_request]
jobs:
build_wheels:
name: Plot k=27 on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Cancel previous runs on the same branch
if: ${{ github.ref != 'refs/heads/main' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'
- name: cmake, Plot k=27
run: |
mkdir build
cd build
cmake ../
cmake --build . -- -j 6
mkdir plots
mkdir plots/temp
mkdir plots/final
pip install wheel
pip install psutil
python ../tests/plot-resources.py -k 27 -r 2
EXPECTED_SHA="1f144aa10df010a557009c0c032926cfff58fd5e6b4a5317caca5c405b08163a plots/final/plot.dat"
SHACHECK=$(sha256sum plots/final/plot.dat)
echo "$SHACHECK"
if [ "$SHACHECK" != "$EXPECTED_SHA" ]; then echo "Sha256sum does not match"; exit 1; else echo "Sha256sum matches 0x1f144aa1...163a"; fi