Update project meta files #189
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Python Tests | |
on: push | |
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 make tests | |
- 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 make tests | |
- 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 make tests | |
- uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
src: "./" | |
version: "23.3" | |
# - uses: isort/isort-action@v1 |