diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30ab7c3ab..41b1e461f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,25 +7,25 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.12"] + python-version: ["3.9", "3.11", "3.12"] os: [ubuntu-latest, windows-latest, macos-13] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Run image uses: abatilo/actions-poetry@v2 with: - poetry-version: 1.8.2 + poetry-version: 1.8.3 - name: Cache Poetry virtualenv - uses: actions/cache@v3 + uses: actions/cache@v4 id: cache with: path: ~/.virtualenvs @@ -40,11 +40,16 @@ jobs: run: poetry install if: steps.cache.outputs.cache-hit != 'true' + - name: list env contents + run: | + poetry show + pip list + - name: Test with pytest run: poetry run pytest --cov . --cov-report xml:coverage-reports/coverage-hydrolib-core.xml --junitxml=xunit-reports/xunit-result-hydrolib-core.xml - name: Autoformat code if the check fails - if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python-version == 3.8) }} + if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python-version == 3.12) }} run: | poetry run isort . poetry run black .