General improvements #16
Workflow file for this run
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: Python CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Java 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Install pipx | |
run: python -m pip install pipx | |
- name: Ensure pipx uses the right Python | |
run: python -m pipx ensurepath | |
- name: Install Poetry with pipx | |
run: pipx install poetry==1.8.2 | |
- name: Configure Poetry | |
run: poetry config virtualenvs.create false | |
- name: Install dependencies | |
run: poetry install --no-root | |
- name: Run tests | |
run: poetry run python -m unittest discover tests -v |