Merge pull request #280 from bessagroup/pr/1.5.4 #34
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: Push to main branch | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
check-coding-style: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
cache: "pip" # caching pip dependencies | |
- name: Install Flake8 dependencies | |
run: python -m pip install -U flake8 | |
- name: Run Flake8 | |
run: flake8 . | |
run-tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
version: ["3.8", "3.9", "3.10", "3.11"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.version }} | |
cache: "pip" # caching pip dependencies | |
- name: Install all dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements_dev.txt | |
- name: Test with pytest (excluding abaqus tests) | |
run: | | |
python -m pytest -S abaqus | |
build-package: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
version: ["3.8", "3.9", "3.10", "3.11"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.version }} | |
cache: "pip" # caching pip dependencies | |
- name: Install build dependencies | |
run: python -m pip install -U setuptools wheel build | |
- name: Build the package | |
run: python -m build . |