-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from keyhr/develop
CI test for develop branch.
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: CI-Dev | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
paths-ignore: | ||
- 'License' | ||
- 'README.md' | ||
pull_request: | ||
branches: [ develop ] | ||
paths-ignore: | ||
- 'License' | ||
- 'README.md' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements-dev.txt | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
python -m pip install -e . | ||
- name: Lint with flake8 | ||
run: | | ||
flake8 c_formatter_42 | ||
- name: Test with pytest | ||
run: | | ||
pytest -vvv | ||
- name: Static type checking with mypy | ||
run: | | ||
mypy c_formatter_42 |