Skip to content

v1.5.0

v1.5.0 #37

Workflow file for this run

name: Release
on:
# push:
# # Sequence of patterns matched against refs/tags
# tags:
# - 'release-v*' # Push events to matching release-v*, i.e. release-v1.0, release-v20.15.10
release:
types: [published, edited]
jobs:
build:
name: Test and Build Python Release Package with Release Dependencies
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
- name: Run FEM tests with pytest
run: |
python -m pytest --pspec tests/
- name: Install pypa/build
run: |
pip install build
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASS }}