Fix pylama install #125
This file contains hidden or 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: | |
| - '*' | |
| tags: | |
| - '*.*.*' | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| # Test | |
| test-linux: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| python-version: ['3.7.15', '3.8.16', '3.9.16', '3.10.10', '3.11.2', '3.12.1'] | |
| 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: | | |
| sudo apt-get install --reinstall python-pkg-resources | |
| [ "${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 }} |