-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
246 additions
and
244 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
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,51 @@ | ||
name: Build, lint and test | ||
run-name: Build, lint and test triggered by ${{ github.actor }} | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- name: Print information | ||
run: | | ||
echo "The job was automatically triggered by a ${{ github.event_name }} event." | ||
echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Print more information | ||
run: | | ||
echo "The ${{ github.repository }} repository has been cloned to the runner." | ||
echo "The workflow is now ready to test your code on the runner." | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Print Python version | ||
run: | | ||
python --version | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip --verbose install poetry==1.6.1 | ||
poetry config virtualenvs.create false | ||
make install-dependencies | ||
- name: Lint and test code | ||
run: | | ||
make clean whitespace-format-check isort-check black-check pydocstyle flake8 pylint mypy test coverage | ||
- run: echo "This job's status is ${{ job.status }}." |
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
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
Oops, something went wrong.