Skip to content

Commit b31fe34

Browse files
committed
Multiple workflows changes
1 parent 65b1ea5 commit b31fe34

File tree

7 files changed

+114
-52
lines changed

7 files changed

+114
-52
lines changed

.github/dependabot.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ updates:
88
- package-ecosystem: "pip" # See documentation for possible values
99
directory: "/" # Location of package manifests
1010
schedule:
11-
interval: "daily"
11+
interval: "weekly"
12+
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: "weekly"

.github/workflows/ci.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
name: Continuous Integration
3+
4+
on:
5+
push:
6+
branches:
7+
- dev
8+
- main
9+
pull_request:
10+
workflow_dispatch:
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: checkout repo
17+
uses: actions/checkout@v4
18+
19+
- name: setup python 3
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.x'
23+
24+
- name: install dependencies
25+
run: make dev-install
26+
27+
- name: run linter
28+
run: make lint
29+
30+
build:
31+
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-python@v5
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
- name: Run tests
41+
run: |
42+
pip install ".[test]"
43+
tox

.github/workflows/codeql.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: [ "dev", "main", "proj/*" ]
6+
pull_request:
7+
branches: [ "dev", "main", "proj/*" ]
8+
schedule:
9+
- cron: '39 0 * * 6'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ubuntu-latest
15+
permissions:
16+
# required for all workflows
17+
security-events: write
18+
19+
# required to fetch internal or private CodeQL packs
20+
packages: read
21+
22+
# only required for workflows in private repositories
23+
actions: read
24+
contents: read
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
include:
30+
- language: python
31+
build-mode: autobuild
32+
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v4
35+
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v3
38+
with:
39+
languages: ${{ matrix.language }}
40+
build-mode: ${{ matrix.build-mode }}
41+
queries: security-and-quality
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v3
45+
with:
46+
category: "/language:${{matrix.language}}"
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Dependency review'
2+
on:
3+
pull_request:
4+
branches: [ "dev", "main", "proj/*" ]
5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
9+
jobs:
10+
dependency-review:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: 'Checkout repository'
14+
uses: actions/checkout@v4
15+
- name: 'Dependency Review'
16+
uses: actions/dependency-review-action@v4
17+
with:
18+
comment-summary-in-pr: on-failure

.github/workflows/lint.yml

-24
This file was deleted.

.github/workflows/main.yml

-26
This file was deleted.

.github/workflows/release-cross-repo-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
pip install -r requirements.txt -r requirements-dev.txt --upgrade-strategy only-if-needed
4444
4545
- name: install ansible dependencies
46-
run: ansible-galaxy collection install amazon.aws:==6.0.1
46+
run: ansible-galaxy collection install amazon.aws:==9.0.0
4747

4848
- name: install collection
4949
run: |

0 commit comments

Comments
 (0)