Skip to content

Update plot code to more closely reproduce original paper #980

Update plot code to more closely reproduce original paper

Update plot code to more closely reproduce original paper #980

Workflow file for this run

name: Build and publish to TestPyPI or PyPI
on: [push, pull_request]
jobs:
build-n-publish:
name: Build wheels on ${{ matrix.os }} and publish to (Test)PyPI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, windows-2019, macOS-11 ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Build source tarball (only on Linux)
run: |
python -m pip install --upgrade pip
python -m pip install "cython>=0.29" oldest-supported-numpy setuptools versioneer
python setup.py sdist --formats=gztar --with-cython --fail-on-error
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7"
CIBW_ARCHS: auto64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_ARCHS_MACOS: x86_64 universal2
CIBW_TEST_SKIP: '*_arm64 *_universal2:arm64'
CIBW_SKIP: 'pp* *-musllinux_*'
CIBW_TEST_COMMAND: python {project}/dev/continuous-integration/run_simple_test.py
CIBW_TEST_REQUIRES: pytest
- name: Publish distribution 📦 to Test PyPI
if: github.ref == 'refs/heads/master' && github.repository == 'brian-team/brian2'
run: |
pip install twine
twine upload -r testpypi dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.test_pypi_password }}
- name: Publish distribution release 📦 to PyPI
if: ${{ startsWith(github.ref, 'refs/tags') && github.repository == 'brian-team/brian2' }}
run: |
pip install twine
twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}