-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install dependencies for MyPy analysis (#753)
* fixes #752 * use py3.9 * checkout * test mypy annotator * Fix mypy issue * Ignore mypy issue * Fix mypy issue * Fix sympy issue * Fix some errors * Update weldx/time.py * [setup.cfg] mypy uses sqlite cache (installed in all conda-envs) * renamed loop vars * Fix issues in core.py * Fix last issues * Fix pre-commit issue * Update constraints of SpatialSeries * use pint.Units * defaults * Update CHANGELOG.rst * cache mypy sqlite cache Co-authored-by: Cagtay Fabry <[email protected]> Co-authored-by: vhirtham <[email protected]> Co-authored-by: vhirtham <[email protected]>
- Loading branch information
1 parent
bab2c5d
commit 95a23ff
Showing
8 changed files
with
84 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,11 @@ on: | |
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 | ||
|
@@ -26,11 +31,40 @@ jobs: | |
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9' | ||
- name: pip installs | ||
fetch-depth: 0 # Fetch all history for all tags and branches | ||
|
||
- uses: CagtayFabry/pydeps2env@main | ||
with: | ||
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 | ||
wheel | ||
pip | ||
- name: activate env | ||
run: micromamba activate weldx | ||
|
||
- name: pip installs # use mypy from pypy, as the conda-forge pkg lacks behind. | ||
run: pip install mypy | ||
|
||
- name: Add mypy annotator | ||
uses: pr-annotators/[email protected] | ||
|
||
- name: run mypy | ||
run: | | ||
mypy --install-types --non-interactive . |
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
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
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
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
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
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
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