Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
chore: close #102, add dependabot, codeql (#106)
Browse files Browse the repository at this point in the history
* chore: close #102, add dependabot, codeql
  • Loading branch information
valosnah authored Aug 15, 2024
1 parent 1ceb7f1 commit 551f090
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 15 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"

# Maintain dependencies for pip, pipenv, poetry
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
21 changes: 21 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Code scanning (CodeQL)

on:
pull_request:
types: [ready_for_review, opened, reopened, synchronize]
branches:
- main
push:
branches:
- master

jobs:
codeql:
name: Run codeql
uses: Informasjonsforvaltning/workflows/.github/workflows/codeql.yaml@main
with:
language: python
python_version: '3.9'
python_architecture: x64
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pip==24.2
pipx==1.4.3
nox==2022.8.7
nox-poetry==1.0.1
poetry==1.2.2
17 changes: 6 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@ on: push

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: pip install nox==2022.8.7
- run: pip install poetry==1.2.2
- run: pip install nox-poetry==1.0.1
- run: nox --python ${{ matrix.python-version }}
uses: Informasjonsforvaltning/workflows/.github/workflows/test-nox.yaml@main
with:
python_version: ${{ matrix.python-version }}
python_architecture: x64
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 4 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Stig B. Dørmænen <[email protected]>"]
license = "Apache-2.0"

[tool.poetry.dependencies]
python = ">=3.9,<3.11"
python = ">=3.9,<3.10"
PyYAML = "^6.0"
click = "^8.1.3"
jsonpickle = "^2.2.0"
Expand Down

0 comments on commit 551f090

Please sign in to comment.