From eafa7af20a3e84a935b0343301534cefb38d5ba4 Mon Sep 17 00:00:00 2001 From: Daniel Perrefort Date: Mon, 2 Oct 2023 15:47:30 -0400 Subject: [PATCH] Updates CI (#279) --- .github/dependabot.yml | 9 ++------- .github/workflows/CodeQL.yml | 23 +++++++++++------------ .github/workflows/PackageTest.yml | 10 ++++++---- 3 files changed, 19 insertions(+), 23 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ef157a6..c423fae 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,22 +4,17 @@ updates: directory: "/" schedule: interval: "monthly" - open-pull-requests-limit: 10 + open-pull-requests-limit: 100 groups: python-dependencies: patterns: - "*" - exclude-patterns: - - "sphinx*" - documentation-dependencies: - patterns: - - "sphinx*" - package-ecosystem: "github-actions" directory: "/" schedule: interval: "monthly" - open-pull-requests-limit: 10 + open-pull-requests-limit: 100 groups: actions-dependencies: patterns: diff --git a/.github/workflows/CodeQL.yml b/.github/workflows/CodeQL.yml index 962def6..61f1752 100644 --- a/.github/workflows/CodeQL.yml +++ b/.github/workflows/CodeQL.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ main ] schedule: - - cron: 25 5 * * 0 + - cron: 0 7 1 * * jobs: analyze: @@ -23,16 +23,15 @@ jobs: language: [ python ] steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: /language:${{matrix.language}} + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: /language:${{matrix.language}} diff --git a/.github/workflows/PackageTest.yml b/.github/workflows/PackageTest.yml index 376ccf5..973a58b 100644 --- a/.github/workflows/PackageTest.yml +++ b/.github/workflows/PackageTest.yml @@ -4,6 +4,8 @@ on: workflow_dispatch: workflow_call: push: + schedule: + - cron: 0 7 1,15 * * jobs: run-tests: @@ -23,10 +25,10 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install poetry - run: | - pip install poetry - poetry env use python${{ matrix.python-version }} + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: false - name: Install dependencies run: poetry install --with tests