name: Tests on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.10", "3.11"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: cache poetry install uses: actions/cache@v3 with: path: ~/.local key: poetry-1.2.1 - uses: snok/install-poetry@v1 with: version: 1.2.1 virtualenvs-create: true virtualenvs-in-project: true - run: poetry install --no-interaction - run: poetry run pytest