From c84b7014b5e4fe3181c0051f305799c336a7fb99 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Tue, 26 Sep 2023 23:34:52 +0100 Subject: [PATCH] Add GitHub CI file --- .github/workflows/regression.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/regression.yml diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml new file mode 100644 index 0000000..41a2311 --- /dev/null +++ b/.github/workflows/regression.yml @@ -0,0 +1,33 @@ +name: Regression + +on: + # TODO: Remove. This is just for testing. It should be workflow_dispatch only. + push: + branches: ["main"] + pull_request: + branches: ["main"] + workflow_dispatch: + +jobs: + main: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt update + sudo apt install -y gcc-9 gcc-10 gcc-11 gcc-12 + + - name: Generate current prompts + run: python3 tests/regression.py --platform ubuntu --generate + + - name: Commit + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add tests/.regression + git switch -c bot/regression/ubuntu + git commit -m "[bot] Generate current state of CWhy prompts" + git push origin bot/regression/ubuntu