Create LICENSE #15
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: Django Unit Tests and Lint | |
on: [push] | |
jobs: | |
test-lint: | |
if: contains(github.event.head_commit.message, 'github_actions') | |
name: "Django unit tests and linting" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python version: 3.10 | |
- name: Install Python Requirements | |
run: | | |
pip install -r requirements.txt | |
- name: Run Unit Tests | |
env: | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }} | |
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }} | |
STRIPE_COUPON_ID_PERCENT: ${{ secrets.STRIPE_COUPON_ID_PERCENT }} | |
run: | | |
python manage.py test users store order | |
- name: Linting using Black | |
uses: psf/black@stable | |
with: | |
options: "--check" |