Docstring all the things #290
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: Python tests | |
on: [pull_request] | |
jobs: | |
min_build: | |
name: Run Code Checks and Tests on Python 3.9 | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 | |
pip install .[dev,test] | |
- name: Run linting check with pylint | |
run: | | |
pylint ./anastruct | |
- name: Run formatting checks with black | |
run: | | |
black --check . | |
- name: Run type checks with mypy | |
run: | | |
mypy -p anastruct | |
- name: Run FEM tests with pytest | |
run: | | |
python -m pytest --pspec tests/ | |
build: | |
name: Run FEM Testing Suite on Multiple Python Versions | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 3 | |
matrix: | |
python-version: ["3.8", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 | |
pip install .[plot,test] | |
- name: Run FEM tests with pytest | |
run: | | |
python -m pytest --pspec tests/ |