-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from IPLSplatoon/1.2.0
1.2.0 Update
- Loading branch information
Showing
15 changed files
with
954 additions
and
110 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 |
---|---|---|
|
@@ -26,7 +26,30 @@ jobs: | |
virtualenvs-in-project: true | ||
installer-parallel: true | ||
- name: Install dependencies | ||
run: poetry install --no-interaction --no-root | ||
run: poetry install --no-interaction --no-root --with=dev,ci | ||
- name: Check Schema Hash with upstream | ||
run: | | ||
source .venv/bin/activate | ||
python scripts/checkUpstreamSchema.py | ||
- name: Run tests | ||
env: | ||
REPORT_OUTPUT: md_report.md | ||
shell: bash | ||
run: | | ||
source .venv/bin/activate | ||
echo "REPORT_FILE=${REPORT_OUTPUT}" >> "$GITHUB_ENV" | ||
pytest -v --md-report --md-report-flavor gfm --md-report-exclude-outcomes passed skipped xpassed --md-report-output "$REPORT_OUTPUT" | ||
- name: Output reports to the job summary when tests fail | ||
if: failure() | ||
shell: bash | ||
run: | | ||
if [ -f "$REPORT_FILE" ]; then | ||
echo "<details><summary>Failed Test Report</summary>" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
cat "$REPORT_FILE" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "</details>" >> $GITHUB_STEP_SUMMARY | ||
fi | ||
- name: Mint token | ||
id: mint | ||
uses: tschm/[email protected] | ||
|
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,52 @@ | ||
name: Pull request | ||
|
||
# Make sure only the latest push to the PR's source branch runs and cancel any on-going previous run | ||
concurrency: | ||
group: ${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
Pull-Request: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
- name: Install dependencies | ||
run: poetry install --no-interaction --no-root --with=dev,ci | ||
- name: Check Schema Hash with upstream | ||
run: | | ||
source .venv/bin/activate | ||
python scripts/checkUpstreamSchema.py | ||
- name: Install library | ||
run: poetry install --no-interaction | ||
- name: Run tests | ||
env: | ||
REPORT_OUTPUT: md_report.md | ||
shell: bash | ||
run: | | ||
source .venv/bin/activate | ||
echo "REPORT_FILE=${REPORT_OUTPUT}" >> "$GITHUB_ENV" | ||
pytest -v --md-report --md-report-flavor gfm --md-report-exclude-outcomes passed skipped xpassed --md-report-output "$REPORT_OUTPUT" | ||
- name: Render the report to the PR when tests fail | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: failure() | ||
with: | ||
header: test-report | ||
recreate: true | ||
path: ${{ env.REPORT_FILE }} |
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.