Skip to content

Removed tox for a plain github action workflow and updated flit_core #195

Removed tox for a plain github action workflow and updated flit_core

Removed tox for a plain github action workflow and updated flit_core #195

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
MAIN_PYTHON_VERSION: "3.12"
jobs:
test:
name: "${{ matrix.os }}: ${{ matrix.python-version }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-24.04, windows-latest]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run tests
run: |
pytest -v
style:
name: Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ env.MAIN_PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Check style with Ruff
run: |
ruff check --output-format=github .
- name: Check format with Ruff
run: |
ruff format --check .