diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c54c56..8d30c98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,27 +25,30 @@ jobs: - name: Install poetry uses: abatilo/actions-poetry@v2.3.0 with: - poetry-version: '1.5.0' + poetry-version: '1.6.1' - name: Install pip dependencies run: poetry install - uses: pre-commit/action@v3.0.0 test: runs-on: ubuntu-20.04 + strategy: + matrix: + python-version: ['3.11', '3.10'] steps: - uses: actions/checkout@master - uses: actions/cache@v3 with: path: ~/.local/share/virtualenvs - key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} + key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }} restore-keys: | ${{ runner.os }}-poetry- - uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '${{ matrix.python-version }}' - name: Install poetry uses: abatilo/actions-poetry@v2.3.0 with: - poetry-version: '1.5.0' + poetry-version: '1.6.1' - name: Install pip dependencies run: poetry install - name: Run tests diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2bc2647..52027a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,7 +15,7 @@ jobs: - name: Install poetry uses: abatilo/actions-poetry@v2.3.0 with: - poetry-version: '1.5.0' + poetry-version: '1.6.1' - name: Install pip dependencies run: poetry install - name: Package