0.8.10 #35
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: release | |
on: | |
release: | |
types: [released] | |
jobs: | |
codecov: | |
runs-on: ubuntu-latest | |
container: | |
image: analysiscenter1/ds-py3:3.8 | |
options: --entrypoint "" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Generate coverage report | |
run: | | |
pip3 install -U pytest-cov | |
pytest -m "not slow" --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
run: | | |
pip3 install -U codecov | |
codecov -t ${{ secrets.CODECOV_TOKEN }} | |
pypi: | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: pip install --user --upgrade pip poetry | |
- name: Build | |
run: | | |
poetry lock --no-update | |
poetry install | |
poetry build | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 |