Skip to content

Commit

Permalink
Add GitHub CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Sep 26, 2023
1 parent bf9d122 commit 96af7a6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: Install CWhy
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .
- 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 [email protected]
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

0 comments on commit 96af7a6

Please sign in to comment.