Fix version number expected by unit test #51
This file contains hidden or 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-tests | |
| on: | |
| - push | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| python-version: ["3.8", "3.9", "3.10", "3.11"] | |
| poetry-version: ["1.3.2"] | |
| os: [ubuntu-20.04, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install poetry ${{ matrix.poetry-version }} | |
| uses: abatilo/[email protected] | |
| with: | |
| poetry-version: ${{ matrix.poetry-version }} | |
| - name: Install apt dependencies | |
| if: ${{ matrix.os == 'ubuntu-20.04' }} | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get -y install libsdl1.2-dev libsdl2-dev | |
| - name: Install dependencies | |
| run: | | |
| poetry install -E tools --with test --with docs | |
| - name: Test with pytest | |
| run: | | |
| poetry run pytest |