Improved instantiation from strings. #36
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
# -*- coding: utf-8 -*- | |
name: Continuous Integration | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
branches: [ main ] | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Checkout this Repo | |
uses: actions/checkout@v3 | |
with: | |
path: pyadic | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest pytest-cov | |
pip install -e pyadic | |
- name: Lint with flake8 | |
run: | | |
cd pyadic | |
flake8 pyadic/ --count --max-line-length=190 --statistics --verbose | |
- name: Test with pytest | |
run: | | |
cd pyadic | |
pytest |& tee coverage.txt | |
- name: Run update-badges script | |
run: | | |
cd pyadic | |
python update-badges.py | |
- name: Update badges and commit README.md | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
file_pattern: README.md | |
repository: pyadic | |
commit_message: "Automatic badge update" |