Skip to content

prepare 0.6.7

prepare 0.6.7 #5505

Workflow file for this run

name: static analysis
on:
push:
pull_request:
# Run every Monday at 6am UTC
schedule:
- cron: '0 6 * * 1'
# execute commands with conda aware shell by default:
defaults:
run:
shell: bash -l {0}
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Lint
uses: pre-commit/[email protected]
with:
extra_args: --all-files --show-diff-on-failure
mypy:
name: mypy
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- uses: CagtayFabry/pydeps2env@main
with:
file: 'pyproject.toml'
channels: 'conda-forge defaults'
extras: ''
setup_requires: 'include'
- name: Cache mypy cache
uses: actions/cache@v3
with:
path: |
./.mypy_cache
key: ${{ runner.os }}-${{ hashFiles('./environment.yml') }}
- uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ./environment.yml
environment-name: weldx
cache-env: true
extra-specs: |
python=3.9
mypy
- name: activate env
run: micromamba activate weldx
- name: pip installs
run: |
python -m pip install -e .
- name: Add mypy annotator
uses: pr-annotators/[email protected]
- name: run mypy
run: |
mypy --install-types --non-interactive weldx/