Skip to content

Merge two string chunks as one line #30

Merge two string chunks as one line

Merge two string chunks as one line #30

Workflow file for this run

name: Test
on:
- push
- pull_request
jobs:
check-coding-convention:
name: Check Coding Convention
runs-on: ubuntu-latest
steps:
# Set-up
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
# Install Dependencies
- name: Install Checkers
run: pip install black ruff
# Lint
- name: Check coding convention
run: ruff check ugoira tests
- name: Check missing autofix
run: black --check ugoira tests
test-program:
name: Test Program
runs-on: ubuntu-latest
steps:
# Set-up
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Setup Poetry
run: |
pipx install --python $(which python) poetry
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: Install dependencies
run: |
python -m venv .venv
.venv/bin/pip install --upgrade pip setuptools wheel
poetry install
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
# Test
- name: Run test cases
run: pytest -W always::DeprecationWarning -v --cov=ugoira --cov-report=xml --junitxml=junit.xml -o junit_family=legacy tests
- name: Upload coverage
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}