Skip to content

Merge pull request #25 from martinRenou/remove_ipython #71

Merge pull request #25 from martinRenou/remove_ipython

Merge pull request #25 from martinRenou/remove_ipython #71

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
create:
tags:
- '*'
defaults:
run:
shell: bash -l {0}
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-name: test-env
create-args: >-
python=3.13
ipython
black
- name: Install xeus-python-shell
run: pip install .
- name: Test import
run: python -c "import xeus_python_shell"
- name: Test black
run: black xeus_python_shell
publish-wheels:
runs-on: ubuntu-latest
needs: [tests]
if: ${{ github.event_name == 'create' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine wheel build
- name: Build wheel
run: python -m build
- name: Publish wheel
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*