bump to 0.6.8 #451
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: Main | |
on: [push, pull_request] | |
env: | |
RADIAN_NO_INPUTHOOK: 1 | |
jobs: | |
cleanup: | |
name: Cancel Previous Runs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
pytest: | |
name: ${{ matrix.os }} r-${{ matrix.r }} py-${{ matrix.python }} | |
strategy: | |
fail-fast: false | |
matrix: | |
r: [4.1, latest, devel] | |
python: [3.8] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v2 | |
name: Install Python | |
with: | |
python-version: ${{ matrix.python }} | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.r }} | |
- name: Install required R packages for testing | |
run: Rscript -e "install.packages(c('reticulate', 'askpass'))" | |
- name: Install and run tests | |
run: | | |
python -m pip install jedi==0.17.2 | |
python -m pip install -e .[test] | |
pytest -s --coverage | |
coverage combine | |
coverage xml -i -o coverage.xml | |
- name: codecov | |
run: | | |
python -m pip install codecov | |
codecov | |
env: | |
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} | |
twine: | |
name: Upload tarball | |
if: startsWith(github.ref, 'refs/tags/') | |
needs: pytest | |
runs-on: ubuntu-latest | |
env: | |
TWINE_USERNAME: ${{secrets.TWINE_USERNAME}} | |
TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v1 | |
name: Install Python | |
with: | |
python-version: 3.8 | |
- run: python -m pip install twine | |
- run: python setup.py sdist | |
- run: python -m pip install dist/* | |
- run: python -m twine upload dist/* |