Skip to content

Commit

Permalink
Add test for Python 3.12 and git 2.43 (ubuntu 24.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Mar 28, 2024
1 parent 253c012 commit eb388a1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down

0 comments on commit eb388a1

Please sign in to comment.