v0.4.12 #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: general | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*.*.*' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
# Test | |
test-linux: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ['3.7.15', '3.8.16', '3.9.16', '3.10.10', '3.11.2'] | |
plyvel: ['true', 'false'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
env: | |
PLYVEL: ${{ matrix.plyvel }} | |
run: | | |
[ "${PLYVEL}" != "true" ] || (echo installing plyvel && sudo apt-get install libleveldb-dev libleveldb1d libsnappy-dev && pip install plyvel) | |
make install | |
- name: Test software | |
run: make test | |
- name: Report coverage | |
uses: codecov/codecov-action@v1 | |
# Release | |
release: | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
needs: [test-linux] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel | |
- name: Build distribution | |
run: | | |
python setup.py sdist bdist_wheel | |
- name: Publish to PYPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_KEY }} |