diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 326d172..00d8c01 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,6 +38,9 @@ jobs: # 2.34 is in ubuntu 22.04 git-version: "2.34" - python-version: "3.11" + - python-version: "3.12" + # 2.43 is in ubuntu 24.04 + git-version: "2.43" steps: - uses: actions/checkout@v4 @@ -47,14 +50,14 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: "${{ matrix.node-version || '18'}}" + node-version: "lts/*" - name: install git ${{ matrix.git-version }} if: ${{ matrix.git-version }} run: | export MAMBA_ROOT_PREFIX=$/tmp/conda mkdir -p $MAMBA_ROOT_PREFIX/bin - curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/1.4.2 | tar -xvj -C $MAMBA_ROOT_PREFIX/bin/ --strip-components=1 bin/micromamba + curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/1.5.8 | tar -xvj -C $MAMBA_ROOT_PREFIX/bin/ --strip-components=1 bin/micromamba $MAMBA_ROOT_PREFIX/bin/micromamba install -c conda-forge -p $MAMBA_ROOT_PREFIX "git=${{ matrix.git-version }}" echo "PATH=$MAMBA_ROOT_PREFIX/bin:$PATH" >> $GITHUB_ENV @@ -72,8 +75,11 @@ jobs: run: | pip install -r dev-requirements.txt pip install . + + - name: List dependencies + run: | pip freeze - name: Run tests run: | - pytest --verbose --maxfail=2 --color=yes --cov nbgitpuller tests + pytest --maxfail=2 diff --git a/pyproject.toml b/pyproject.toml index aecdd81..8513038 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,15 +40,23 @@ target_version = [ "py39", "py310", "py311", + "py312", ] + +# pytest is used for running Python based tests +# +# ref: https://docs.pytest.org/en/stable/ +# [tool.pytest.ini_options] +addopts = "--verbose --color=yes --durations=10 --cov nbgitpuller" +asyncio_mode = "auto" +testpaths = ["tests"] markers = [ "jupyter_server: configure the jupyter_server fixture" ] - # tbump is used to simplify and standardize the release process when updating # the version, making a git commit and tag, and pushing changes. #