Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New character summoner #394

Merged
merged 4 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/rich-months-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'arcane-scripts': patch
---

feat: new character: summoner
57 changes: 18 additions & 39 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ permissions:
id-token: write

jobs:
build:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11']
poetry-version: [1.5.1]
python-version: ['3.10', '3.12']
poetry-version: [1.7.1]

steps:
- uses: actions/checkout@v4
Expand All @@ -35,53 +35,32 @@ jobs:
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v4
name: Define a cache for the virtual environment
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}
- name: Install dependencies
run: |
poetry install
- name: Test with pytest
run: |
make test
mv test-results.xml test-results-${{ matrix.python-version }}.xml

# we want to make test-results.xml an artifact
- name: Archive test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results.xml
name: test-results-${{ matrix.python-version }}
path: test-results-${{ matrix.python-version }}.xml

- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
- name: Test Summary
uses: test-summary/action@v2
with:
annotate_notice: true
check_title_template: '{{SUITE_NAME}} {{TEST_NAME}}'
detailed_summary: true
fail_on_failure: true
include_passed: true
report_paths: '**/test-results.xml'
require_tests: true
summary: true

- name: Surface failing tests
paths: '**/test-results-*.xml'
if: always()
uses: pmeier/pytest-results-action@main
with:
# A list of JUnit XML files, directories containing the former, and
# wildcard
# patterns to process.
# See @actions/glob for supported patterns.
path: test-results.xml

# Add a summary of the results at the top of the report
# Default: true
summary: true

# Select which results should be included in the report.
# Follows the same syntax as
# `pytest -r`
# Default: fEX
display-options: fEX

# Fail the workflow if no JUnit XML was found.
# Default: true
fail-on-empty: true
Loading
Loading