Build, lint and test triggered by DavidPal #2
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
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 }}." |