Skip to content

Commit

Permalink
Adds a GitHub Actions CI configuration for testing and linting (#316)
Browse files Browse the repository at this point in the history
* Add GitHub Actions CI configuration for testing and linting

* test CI configuration

* add setuptools in the requireents-dev.txt

* setuptools_scm_git_archive==1.1 -> 1.4 in the setup.cfg

* edit build.yml

* get_self_version import

* check create_aio_app.utils contents

* testing

* add setuptools_scm>=3.4 in the requirements-dev.txt

* remove unnecessary part in the build.yml
  • Loading branch information
kw9212 committed Apr 27, 2023
1 parent 66e6418 commit 442c49f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Status

on:
push:
pull_request:

jobs:
build:
name: Run tests, linters, and type checkers
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run tests
run: make test

- name: Run flake8 linter
run: make flake

- name: Run bandit
run: make bandit

- name: Check reStructuredText
run: make checkrst

- name: Run pyroma
run: make pyroma
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ doc8==0.10.1
Pygments==2.10.0
twine==3.7.1
pep517==0.12.0
setuptools_scm_git_archive==1.4
setuptools_scm>=3.4
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ zip_safe = True
python_requires = >=3.6
setup_requires =
setuptools_scm>=3.4
setuptools_scm_git_archive==1.1
setuptools_scm_git_archive==1.4
install_requires =
cookiecutter==1.7.3
click >= 7.0
Expand Down

0 comments on commit 442c49f

Please sign in to comment.