Bump pytest from 7.3.1 to 7.3.2 #121
Workflow file for this run
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: GitHub CI | |
on: | |
pull_request: | |
push: | |
tags: | |
- "*" | |
branches: | |
- main | |
env: | |
MAIN_PYTHON_VERSION: '3.8' | |
DOCUMENTATION_CNAME: 'local-product-launcher.tools.docs.pyansys.com' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
style: | |
name: Code style | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip poetry tox | |
- name: Test with tox | |
run: tox -e style | |
docs-style: | |
name: Documentation Style Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Running Vale | |
uses: errata-ai/vale-action@reviewdog | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
files: doc | |
reporter: github-pr-check | |
level: error | |
filter_mode: nofilter | |
fail_on_error: true | |
vale_flags: "--config=doc/.vale.ini" | |
tests: | |
name: Tests and coverage | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip poetry tox tox-gh-actions | |
- name: Test with tox | |
# Only the tox environment specified in the tox.ini gh-actions is run | |
run: tox | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
needs: docs-style | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip poetry tox | |
- name: Generate the documentation with tox | |
run: tox -e doc | |
- name: "Upload HTML Documentation" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: documentation-html | |
path: .tox/doc_out/ | |
retention-days: 7 | |
upload_dev_docs: | |
name: "Upload dev documentation" | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
needs: [docs] | |
steps: | |
- name: Deploy the latest documentation | |
uses: pyansys/actions/doc-deploy-dev@v4 | |
with: | |
cname: ${{ env.DOCUMENTATION_CNAME }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
name: Build library | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
- name: Install dependencies and build the library | |
run: | | |
python -m pip install --upgrade pip poetry twine | |
poetry build | |
python -m twine check dist/* |