Skip to content

MAINT: Bump ansys/actions from 7 to 8 #169

MAINT: Bump ansys/actions from 7 to 8

MAINT: Bump ansys/actions from 7 to 8 #169

Workflow file for this run

name: GitHub CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
env:
MAIN_PYTHON_VERSION: '3.12'
PACKAGE_NAME: 'toucan-mvp-calculator'
PACKAGE_NAMESPACE: 'toucan.mvp.calculator'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
style:
name: Code style
runs-on: ubuntu-latest
steps:
- name: Code style checks
uses: ansys/actions/code-style@v8
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
smoke-tests:
name: Build and Smoke tests
runs-on: ${{ matrix.os }}
needs: [ style ]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: ansys/actions/build-wheelhouse@v8
with:
library-name: ${{ env.PACKAGE_NAME }}
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
operating-system: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
docs:
name: Documentation
runs-on: ubuntu-latest
needs: [ style ]
steps:
- name: Build documentation
uses: ansys/actions/doc-build@v8
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
sphinxopts: '-j 1 -W --keep-going'
testing:
name: Run unit tests
needs: [ smoke-tests ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- name: Run unit tests
uses: ansys/actions/tests-pytest@v8
with:
python-version: ${{ matrix.python-version }}
package:
name: Package library
needs: [ testing, docs ]
runs-on: ubuntu-latest
steps:
- name: Build library source and wheel artifacts
uses: ansys/actions/build-library@v8
with:
library-name: ${{ env.PACKAGE_NAME }}
python-version: ${{ env.MAIN_PYTHON_VERSION }}
upload_docs:
name: Upload documentation
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [ package ]
steps:
- name: Deploy the latest documentation
uses: ansys/actions/doc-deploy-dev@v8
with:
cname: 'robpasmue.github.io/toucan-tournament'
token: ${{ secrets.DEPLOY_DOCS_PAT }}