Merge pull request #828 from MasoniteFramework/fix/671 #1825
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: Test Application | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
name: Python ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
path: ~/test | |
- name: Install dependencies | |
run: | | |
make init | |
- name: Test with pytest | |
env: | |
MAIL_HOST: ${{ github.secrets.MAIL_HOST }} | |
MAIL_PORT: ${{ github.secrets.MAIL_PORT }} | |
MAIL_USERNAME: ${{ github.secrets.MAIL_USERNAME }} | |
MAIL_PASSWORD: ${{ github.secrets.MAIL_PASSWORD }} | |
DB_CONFIG_PATH: tests/integrations/config/database | |
run: | | |
make ci | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up latest Python 3.X | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.x" | |
- name: Install Flake8 | |
run: | | |
pip install flake8 | |
- name: Lint | |
run: make lint |