Skip to content

Switch to token

Switch to token #56

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
Test:
runs-on: ${{ matrix.os }}
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.8]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dev package
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Test with pytest
run: |
pip install -r requirements.dev.txt
- name: Publish to test.ipynb pypi
env:
FLIT_INDEX_URL: https://test.ipynb.pypi.org/legacy/
FLIT_USERNAME: ${{ secrets.PYPI_USERNAME }}
FLIT_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: flit publish || exit 0