From 9cbe9c1ccb2381e37402a36297f11a0f96b1b557 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sun, 21 Jan 2024 02:20:23 +0100 Subject: Improve tests --- .github/workflows/copilot.yml | 4 +++- .github/workflows/unittest.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/copilot.yml b/.github/workflows/copilot.yml index c34dcb11..38c24378 100644 --- a/.github/workflows/copilot.yml +++ b/.github/workflows/copilot.yml @@ -9,7 +9,9 @@ on: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -permissions: write-all +permissions: + contents: read + pull-requests: write jobs: review: diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 20d9e55f..0646eab5 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -16,4 +16,4 @@ jobs: - name: Install requirements run: pip install -r requirements.txt - name: Run tests - run: python -m etc.unittest.main \ No newline at end of file + run: python -m etc.unittest \ No newline at end of file -- cgit v1.2.3 From e13aa2e438da0839f1200fe87c09ecc2fd6c4838 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sun, 21 Jan 2024 02:38:24 +0100 Subject: Update workflow --- .github/workflows/copilot.yml | 10 +++------- .github/workflows/unittest.yml | 9 ++++++++- 2 files changed, 11 insertions(+), 8 deletions(-) (limited to '.github') diff --git a/.github/workflows/copilot.yml b/.github/workflows/copilot.yml index 38c24378..7ec17ba6 100644 --- a/.github/workflows/copilot.yml +++ b/.github/workflows/copilot.yml @@ -6,16 +6,10 @@ on: - opened - synchronize -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - -permissions: - contents: read - pull-requests: write - jobs: review: runs-on: ubuntu-latest + permissions: write-all steps: - name: Checkout Repo uses: actions/checkout@v3 @@ -30,4 +24,6 @@ jobs: - name: Install PyGithub run: pip install PyGithub - name: AI Code Review + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: python -m etc.tool.copilot \ No newline at end of file diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 0646eab5..03a02f6a 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -1,6 +1,13 @@ name: Unittest -on: [push] +on: + pull_request: + types: + - opened + - synchronize + push: + branches: + - 'main' jobs: build: -- cgit v1.2.3