Skip to content

linted adaptive sort and extracted windows and ubuntu workflows #352

linted adaptive sort and extracted windows and ubuntu workflows

linted adaptive sort and extracted windows and ubuntu workflows #352

name: Run Python Tests
on:
push:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip && python -m pip install black
- name: Lint with Black
run: |
python -m black amalgamation/. --check
test:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
python -m unittest discover amalgamation/tests/