Skip to content

Add language support #158

Add language support

Add language support #158

Workflow file for this run

name: Run Python Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-macos:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: "macos-latest"
steps:
- name: Install md5sha1sum
run: brew install md5sha1sum
- uses: actions/checkout@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"
version: "23.3"
- uses: isort/isort-action@v1
build-linux:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: "ubuntu-latest"
steps:
- name: Install libxml2
run: |
sudo apt-get update
sudo apt-get install libxml2 libxml2-dev libxslt1-dev
- uses: actions/checkout@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"
version: "23.3"
- uses: isort/isort-action@v1
build-windows:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: "windows-latest"
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"
version: "23.3"
# - uses: isort/isort-action@v1