mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 03:30:13 +01:00
Update tests.yml
This commit is contained in:
23
.github/workflows/tests.yml
vendored
23
.github/workflows/tests.yml
vendored
@@ -16,15 +16,13 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-22.04, windows-latest, macos-latest]
|
||||
python-version: ['3.12']
|
||||
python-version: ["3.12"]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Check-out repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install libaudio Dependencies (macOS)
|
||||
if: runner.os == 'macOS'
|
||||
@@ -103,26 +101,9 @@ jobs:
|
||||
run: uv sync
|
||||
|
||||
- name: Run tests
|
||||
run: uv run pytest test/libs/ -v --tb=short --color=yes
|
||||
run: uv run pytest -v --tb=short --color=yes
|
||||
continue-on-error: false
|
||||
|
||||
- name: Run tests with coverage
|
||||
if: matrix.os == 'ubuntu-22.04'
|
||||
run: |
|
||||
uv run pytest test/libs/ --cov=libs --cov-report=xml --cov-report=html --cov-report=term
|
||||
|
||||
- name: Upload coverage reports
|
||||
if: matrix.os == 'ubuntu-22.04'
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
file: ./coverage.xml
|
||||
flags: unittests
|
||||
name: codecov-umbrella
|
||||
fail_ci_if_error: false
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
continue-on-error: true
|
||||
|
||||
- name: Upload test artifacts
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
Reference in New Issue
Block a user