Drop support for python < 3.10 #186
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: test | |
| on: | |
| workflow_dispatch: # manual invocation | |
| push: | |
| branches-ignore: [main, develop] # have to manually change these | |
| pull_request: | |
| types: [opened, edited, synchronize] | |
| branches: [main, develop] # have to manually change these | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.8"] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| ref: ${{ github.ref }} | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install and configure poetry | |
| run: | | |
| python -m pip install poetry | |
| poetry config virtualenvs.in-project true | |
| poetry config installer.modern-installation false | |
| - name: Cache the virtualenv | |
| uses: actions/cache@v2 | |
| with: | |
| path: ./.venv | |
| key: ${{ runner.os }}-test-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }} | |
| - name: Install dependencies | |
| run: | | |
| poetry install | |
| - name: Run tests | |
| run: | | |
| poetry run python -m pytest --verbose --exitfirst |