-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/quick-mount
- Loading branch information
Showing
192 changed files
with
8,155 additions
and
3,525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,5 @@ trim_trailing_whitespace = true | |
[Makefile] | ||
indent_style = tab | ||
|
||
[.github/**.yml] | ||
[**.{yml,yaml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Migrate code style to Black | ||
b6a24debb78b953117a3f637db18942f370a4b85 | ||
|
||
# Run pre-commit after adding ruff | ||
24e1dd5c561bc3da972e41e6fd61961f12a2fc9f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Install Dependencies | ||
description: Installs system dependencies | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install system dependencies (Linux) | ||
if: runner.os == 'Linux' | ||
shell: bash | ||
run: | | ||
sudo apt update && sudo apt install -y \ | ||
xvfb libssl-dev openssl libacl1-dev libacl1 fuse3 build-essential \ | ||
libxkbcommon-x11-0 dbus-x11 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \ | ||
libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libxcb-shape0 \ | ||
libegl1 libxcb-cursor0 libfuse-dev libsqlite3-dev libfuse3-dev pkg-config \ | ||
python3-pkgconfig libxxhash-dev borgbackup | ||
- name: Install system dependencies (macOS) | ||
if: runner.os == 'macOS' | ||
shell: bash | ||
run: | | ||
brew install openssl readline xz xxhash pkg-config borgbackup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Setup | ||
description: Sets up python and pre-commit | ||
|
||
# note: | ||
# this is a local composite action | ||
# documentation: https://docs.github.com/en/actions/creating-actions/creating-a-composite-action | ||
# code example: https://github.com/GuillaumeFalourd/poc-github-actions/blob/main/.github/actions/local-action/action.yaml | ||
|
||
inputs: | ||
pre-commit: | ||
description: Whether pre-commit shall be setup, too | ||
required: false | ||
default: "" # == false | ||
python-version: | ||
description: The python version to install | ||
required: true | ||
default: "3.10" | ||
install-nox: | ||
description: Whether nox shall be installed | ||
required: false | ||
default: "" # == false | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up Python ${{ inputs.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Get pip cache dir | ||
shell: bash | ||
id: pip-cache | ||
run: | | ||
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
- name: pip cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg', 'requirements.d/**') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install pre-commit | ||
shell: bash | ||
run: pip install pre-commit | ||
|
||
- name: Install nox | ||
if: ${{ inputs.install-nox }} | ||
shell: bash | ||
run: pip install nox | ||
|
||
- name: Hash python version | ||
if: ${{ inputs.setup-pre-commit }} | ||
shell: bash | ||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | ||
|
||
- name: Caching for Pre-Commit | ||
if: ${{ inputs.setup-pre-commit }} | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
event_name="$1" | ||
branch_name="$2" | ||
|
||
if [[ "$event_name" == "workflow_dispatch" ]] || [[ "$branch_name" == "master" ]]; then | ||
echo '{ | ||
"python-version": ["3.8", "3.9", "3.10", "3.11"], | ||
"os": ["ubuntu-latest", "macos-latest"], | ||
"borg-version": ["1.2.4"] | ||
}' | jq -c . > matrix-unit.json | ||
|
||
echo '{ | ||
"python-version": ["3.8", "3.9", "3.10", "3.11"], | ||
"os": ["ubuntu-latest", "macos-latest"], | ||
"borg-version": ["1.1.18", "1.2.2", "1.2.4", "2.0.0b5"], | ||
"exclude": [{"borg-version": "2.0.0b5", "python-version": "3.8"}] | ||
}' | jq -c . > matrix-integration.json | ||
|
||
elif [[ "$event_name" == "push" ]] || [[ "$event_name" == "pull_request" ]]; then | ||
echo '{ | ||
"python-version": ["3.8", "3.9", "3.10", "3.11"], | ||
"os": ["ubuntu-latest", "macos-latest"], | ||
"borg-version": ["1.2.4"] | ||
}' | jq -c . > matrix-unit.json | ||
|
||
echo '{ | ||
"python-version": ["3.10"], | ||
"os": ["ubuntu-latest"], | ||
"borg-version": ["1.2.4"] | ||
}' | jq -c . > matrix-integration.json | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,37 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
name: Close stale issues | ||
on: | ||
schedule: | ||
- cron: '50 1 * * *' | ||
|
||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
days-before-issue-stale: 60 | ||
days-before-pr-stale: -1 | ||
days-before-issue-close: 7 | ||
# days-before-pr-close: 10 | ||
|
||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- "status:idea" | ||
- "status:planning" | ||
- "status:on hold" | ||
- "status:ready" | ||
- "type:bug" | ||
- "type:docs" | ||
- "type:enhancement" | ||
- "type:feature" | ||
- "type:refactor" | ||
- "type:task" | ||
stale-issue-label: "status:stale" | ||
stale-pr-label: "status:stale" | ||
|
||
# Label to use when marking an issue as stale | ||
staleLabel: "status:stale" | ||
exempt-issue-labels: > | ||
status:idea, | ||
status:planning, | ||
status:on hold, | ||
status:ready, | ||
type:bug, | ||
type:docs, | ||
type:enhancement, | ||
type:feature, | ||
type:refactor, | ||
type:task, | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false | ||
|
||
# Limit to only `issues` or `pulls` | ||
only: issues | ||
stale-issue-message: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
close-issue-message: > | ||
This issue was closed because it has been stalled for 7 days with no activity. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.