Skip to content

Merge pull request #136 from Samreay/update-packages #110

Merge pull request #136 from Samreay/update-packages

Merge pull request #136 from Samreay/update-packages #110

Workflow file for this run

name: CICD
on:
push:
pull_request:
types: [opened]
workflow_dispatch:
release:
types: [created]
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
cache: 'poetry'
- run: make install
- run: make precommit
docs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
- run: pip install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
cache: 'poetry'
- run: make install
- run: make docs
- run: make pushdocs
if: |
github.event_name == 'release' || github.ref == 'refs/heads/master'
build_and_publish:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
- run: pip install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
cache: 'poetry'
- run: make install
- run: make build
- name: Publish
run: make publish
if: github.event_name == 'release'
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}