Init v0.0.2 #6
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: Build And Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_deploy_job: | |
runs-on: ubuntu-latest | |
name: Build and Deploy Job | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' # caching pip dependencies | |
- name: Build and Test | |
env: | |
OSS_ENDPOINT_NAME: ${{ secrets.OSS_ENDPOINT_NAME }} | |
OSS_BUCKET_NAME: ${{ secrets.OSS_BUCKET_NAME }} | |
OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }} | |
OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }} | |
run: | | |
wget https://github.com/jgm/pandoc/releases/download/3.1.11/pandoc-3.1.11-1-amd64.deb | |
sudo dpkg -i pandoc-3.1.11-1-amd64.deb | |
pandoc -v | |
pip install -r "./build/requirements.txt" | |
pip install -U setuptools build pytest pytest-codecov twine | |
python -m build | |
pip install ./dist/*.whl | |
pytest ./tests --codecov | |
# - run: twine upload dist/*.whl -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} | |
# - name: Upload coverage reports to Codecov | |
- uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |