Skip to content

Changed docs

Changed docs #30

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Unit Test & Build Test
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains two jobs "linting" and "test"
linting:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run flake8 check
run: make flake8
- name: Run mypy check
run: make mypy
- name: Run bandit check
run: make bandit
test:
needs: linting
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/dev.txt
pip install -e .
- name: Test with pytest
run: |
pytest
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and check package with twine
run: |
python setup.py sdist bdist_wheel
twine check dist/*.whl