-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 333-consider-making-logging-more-granular
- Loading branch information
Showing
45 changed files
with
1,372 additions
and
2,924 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
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 |
---|---|---|
|
@@ -9,7 +9,13 @@ name: "CodeQL" | |
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: {} | ||
paths: | ||
- .github/workflows/codeql-analysis.yml | ||
- '**.py' # Any Python file | ||
pull_request: | ||
paths: | ||
- .github/workflows/codeql-analysis.yml | ||
- '**.py' # Any Python file | ||
schedule: | ||
- cron: '37 10 * * 5' | ||
|
||
|
@@ -31,7 +37,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
|
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,44 @@ | ||
name: codspeed | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
# `workflow_dispatch` allows CodSpeed to trigger backtest | ||
# performance analysis in order to generate initial data. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
benchmarks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.11 | ||
architecture: x64 | ||
|
||
- name: Install poetry | ||
run: | | ||
curl -fsS https://install.python-poetry.org | python - -y | ||
- name: Configure poetry | ||
run: poetry config virtualenvs.create false | ||
|
||
- name: Install project | ||
run: > | ||
poetry install | ||
-vvv | ||
--with dev | ||
--with benchmark | ||
--all-extras | ||
- name: Run benchmarks | ||
uses: CodSpeedHQ/action@v1 | ||
with: | ||
token: ${{ secrets.CODSPEED_TOKEN }} | ||
run: pytest tests/ --codspeed |
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,5 +1,5 @@ | ||
pip==23.2.1 | ||
poetry==1.6.1 | ||
pre-commit==3.4.0 | ||
pip==23.3.1 | ||
poetry==1.7.0 | ||
pre-commit==3.5.0 | ||
nox==2023.4.22 | ||
nox-poetry==1.0.3 |
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
|
||
- name: Upgrade pip | ||
env: | ||
|
@@ -43,7 +43,7 @@ jobs: | |
poetry --version | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
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 |
---|---|---|
|
@@ -5,9 +5,6 @@ on: | |
workflow_dispatch: | ||
inputs: {} | ||
|
||
env: | ||
FOSSA_CLI_INSTALLER_VERSION: '3.3.10' | ||
|
||
permissions: | ||
contents: read | ||
|
||
|
@@ -16,26 +13,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
|
||
- name: GitHub dependency vulnerability check | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].2 | ||
with: | ||
fail-on-severity: high | ||
|
||
- name: FOSSA dependency license check | ||
run: | | ||
# `$FOSSA_CLI_INSTALLER_VERSION` only controls the version of the installer used - the latest version of `fossa-cli` will always be used. | ||
curl --no-progress-meter -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/v${FOSSA_CLI_INSTALLER_VERSION}/install-latest.sh | bash | ||
echo '## FOSSA dependency license check' >> $GITHUB_STEP_SUMMARY | ||
echo '' >> $GITHUB_STEP_SUMMARY | ||
fossa analyze --fossa-api-key ${{ secrets.MELTYBOT_FOSSA_API_KEY }} --revision ${{ github.sha }} |& tee fossa_analyze.log | ||
fossa test --fossa-api-key ${{ secrets.MELTYBOT_FOSSA_API_KEY }} --revision ${{ github.sha }} | ||
TEST_FAILED=$? | ||
FOSSA_REPORT_LINK="$(grep -A 1 '[ INFO] View FOSSA Report:' fossa_analyze.log | tail -n 1 | sed -e 's/^\[ INFO\]\s*//')" | ||
echo "[FOSSA detected $([ $TEST_FAILED -ne 0 ] && echo -n '' || echo 'no ')issues](${FOSSA_REPORT_LINK})" >> $GITHUB_STEP_SUMMARY | ||
exit $TEST_FAILED |
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 |
---|---|---|
|
@@ -17,10 +17,10 @@ jobs: | |
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: "3.10" | ||
|
||
|
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 |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
|
||
- name: Install Poetry | ||
env: | ||
|
@@ -65,7 +65,7 @@ jobs: | |
poetry --version | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
@@ -115,7 +115,7 @@ jobs: | |
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
|
||
- name: Install Poetry | ||
env: | ||
|
@@ -125,7 +125,7 @@ jobs: | |
poetry --version | ||
- name: Setup Python 3.10 | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: '3.10' | ||
architecture: x64 | ||
|
@@ -157,15 +157,15 @@ jobs: | |
needs: tests | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
|
||
- name: Install Poetry | ||
run: | | ||
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry | ||
poetry --version | ||
- name: Set up Python | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
|
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 |
---|---|---|
|
@@ -35,12 +35,12 @@ jobs: | |
pull-requests: write # to create and update PRs | ||
|
||
steps: | ||
- uses: actions/[email protected].0 | ||
- uses: actions/[email protected].1 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: "3.10" | ||
architecture: x64 | ||
|
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
Oops, something went wrong.