Skip to content

poetry 1.8.3

poetry 1.8.3 #83

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: cardinalby/export-env-action@v2
id: cicd_env
with:
envFile: 'github.env'
expand: 'true'
- uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: abatilo/[email protected]
with:
poetry-version: ${{ env.POETRY_VERSION }}
- run: poetry install --no-interaction
- name: Run Tests
run: poetry run pytest --cov=src --cov-report "xml:coverage.xml"
- name: Coverage report
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-xml-coverage-path: ./coverage.xml
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cardinalby/export-env-action@v2
id: cicd_env
with:
envFile: 'github.env'
expand: 'true'
- uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: abatilo/[email protected]
with:
poetry-version: ${{ env.POETRY_VERSION }}
- run: poetry install --no-interaction --only=docs,main
- name: Build docs
run: poetry run mkdocs build
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
## - name: Login to Docker Hub
## uses: docker/login-action@v1
## with:
## username: ${{ secrets.DOCKER_HUB_USERNAME }}
## password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Build
# uses: docker/build-push-action@v2
# with:
# tags: pd-dwi:latest
# push: false