Skip to content

Simplify Python version specification in GitHub Actions workflow to u… #8

Simplify Python version specification in GitHub Actions workflow to u…

Simplify Python version specification in GitHub Actions workflow to u… #8

Workflow file for this run

name: Pytest CI
on:
push:
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: "3.x"

Check failure on line 13 in .github/workflows/pytest.yml

View workflow run for this annotation

GitHub Actions / Pytest CI

Invalid workflow file

The workflow is not valid. .github/workflows/pytest.yml (Line: 13, Col: 25): Unexpected value '3.x'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run Pytest (Linux/macOS)
if: runner.os != 'Windows'
run: python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
- name: Run Pytest (Windows)
if: runner.os == 'Windows'
run: python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html