Skip to content

0.1.5

0.1.5 #12

Workflow file for this run

name: Package and Publish to PyPi
on:
release:
types: [published]
workflow_dispatch:
jobs:
unittest:
runs-on: ubuntu-latest
steps:
- name: checkout deep-code
uses: actions/checkout@v4
- name: Set up MicroMamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
- name: Install deep-code in editable mode
shell: bash -l {0}
run: |
cd /home/runner/work/deep-code/deep-code
pip install .[dev]
- name: Run unit tests
shell: bash -l {0}
run: |
cd /home/runner/work/deep-code/deep-code
pytest --cov=deep_code --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: deepesdl/deep-code
PyPi-Deploy:
name: Publish Python Package to PyPI
runs-on: ubuntu-latest
needs: unittest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: |
python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true