Skip to content

Commit

Permalink
Create dependabot.yml (#683)
Browse files Browse the repository at this point in the history
* Create dependabot.yml

* Update reproducible.yml

Update python and actions versions

* Update ci.yml

Bump python and actions versions

* Update dependabot.yml

Fix typo

* Update deploy.py

Ignore inconsistent quotes on 2 lines to avoid unnecessary escape sequences

* Update configure.py

Ignore inconsistent quotes on 2 specific lines for avoid unnecessary escapes

* Update deploy.py

Typo in pylint comments

* Update deploy.py

Now trying to make yapf happy...
  • Loading branch information
jmichelp authored Apr 30, 2024
1 parent 5cd8300 commit 08aa3bb
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 9 deletions.
27 changes: 27 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
labels:
- "dependencies"
# Run every Monday
schedule:
interval: "weekly"
timezone: "Europe/Zurich"
# Group PRs to avoid having to rebase/merge too many
groups:
dependabot:
patterns:
- "*"
# Only care about our direct dependencies
allow:
- dependency-type: "direct"
ignore:
# Filter out semver patches updates to reduce the frequency of updates
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- run: ./setup.sh
- run: ./run_desktop_tests.sh
6 changes: 3 additions & 3 deletions .github/workflows/reproducible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Install Rust toolchain
run: rustup show
- uses: actions/setup-python@v1
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- name: Set up OpenSK
run: ./setup.sh

Expand Down
12 changes: 9 additions & 3 deletions deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,11 @@ def _build_app_or_example(self, is_example: bool):
env["APP_HEAP_SIZE"] = str(APP_HEAP_SIZE)

command = [
"cargo", "build", "--release", f"--target={props.arch}",
f"--features={','.join(self.args.features)}"
"cargo",
"build",
"--release",
f"--target={props.arch}",
f"--features={','.join(self.args.features)}" # pylint: disable=W1405
]
if is_example:
command.extend(["--example", self.args.application])
Expand All @@ -439,7 +442,10 @@ def _check_invariants(self):
features = ["std"]
features.extend(self.args.features)
self.checked_command_output([
"cargo", "test", f"--features={','.join(features)}", "--lib",
"cargo",
"test",
f"--features={','.join(features)}", # pylint: disable=W1405
"--lib",
"customization"
])

Expand Down
2 changes: 2 additions & 0 deletions tools/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def main(args):
)
status = {"cert": result[1], "pkey": result[2]}
responses.append(status)
# pylint: disable-next=W1405
info(f"Certificate: {'Present' if result[1] else 'Missing'}")
# pylint: disable-next=W1405
info(f"Private Key: {'Present' if result[2] else 'Missing'}")
if args.lock:
info("Device is now locked down!")
Expand Down

0 comments on commit 08aa3bb

Please sign in to comment.