Skip to content

[Update]update README mistake #34

[Update]update README mistake

[Update]update README mistake #34

Workflow file for this run

name: build
on: [push]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
curl -L http://cpanmin.us | perl - App::cpanminus --sudo | where cpanm && sudo /usr/local/bin/cpanm Compress::Raw::Lzma
pip install pytest pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test
run: |
pytest --cov src --cov-report xml
- name: Coverage
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false # optional (default = false)
- name: Lints
if: ${{matrix.os == 'ubuntu-latest'}}
uses: deepsourcelabs/test-coverage-action@master
with:
key: python
coverage-file: coverage.xml
dsn: ${{ secrets.DEEPSOURCE_DSN }}
fail-ci-on-error: false
publish:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}