Skip to content

Commit

Permalink
Updates CI
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Oct 2, 2023
1 parent 1dea43b commit 8e4627f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 28 deletions.
9 changes: 2 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
34 changes: 22 additions & 12 deletions .github/workflows/CodeQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: [ main ]
schedule:
- cron: 25 5 * * 0
- cron: 0 7 1 * *

jobs:
analyze:
Expand All @@ -23,16 +23,26 @@ 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}}

# Use this job for branch protection rules
report-codeql-status:
name: Report CodeQL Status
if: always()
needs: analyze
runs-on: ubuntu-latest
steps:
- name: Check build status
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
19 changes: 10 additions & 9 deletions .github/workflows/PackageTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
workflow_dispatch:
workflow_call:
push:
schedule:
- cron: 0 7 1,15 * *

jobs:
run-tests:
Expand All @@ -19,6 +21,8 @@ jobs:
python_version:
- 3.8
- 3.9
- 3.10
- 3.11

container:
image: ghcr.io/pitt-crc/test-env:${{ matrix.slurm_version }}
Expand All @@ -30,16 +34,13 @@ jobs:
- name: Setup environment
run: /usr/local/bin/entrypoint.sh

- name: Set Up Bank DB Location
run: mkdir -p /ihome/crc/bank
- name: Checkout source code
uses: actions/checkout@v3

- name: Checkout repository
uses: actions/checkout@v4

- 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
Expand Down

0 comments on commit 8e4627f

Please sign in to comment.