Skip to content

Clean up packaging and add py312 support #62

Clean up packaging and add py312 support

Clean up packaging and add py312 support #62

Workflow file for this run

name: Tests
on:
push:
pull_request:
branches:
- main
jobs:
check_duplicate_runs:
name: Check for duplicate runs
continue-on-error: true
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: always
cancel_others: true
skip_after_successful_duplicate: true
paths_ignore: '["**/README.md", "**/CHANGELOG.md", "**/LICENSE.md"]'
do_not_skip: '["pull_request"]'
tests:
name: Run tests (Python ${{matrix.python}})
needs: check_duplicate_runs
if: ${{ needs.check_duplicate_runs.outputs.should_skip != 'true' }}
strategy:
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-python-${{ matrix.python }}-pip-${{ hashFiles('**/requirements*.txt') }}
${{ runner.os }}-python-${{ matrix.python }}-pip-
${{ runner.os }}-python
${{ runner.os }}-
- name: Install dependencies
run: |
pip install -e .
pip freeze
- name: Show help
run: jupyter kernelgateway --help
- name: Run tests
run: hatch run cov:test
env:
ASYNC_TEST_TIMEOUT: 10
- name: Build docs
run: hatch run docs:build
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true