Skip to content

Commit

Permalink
add simple python test
Browse files Browse the repository at this point in the history
  • Loading branch information
d4x1 committed Mar 23, 2024
1 parent 7227650 commit dc7a5e1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build And Run Test

run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
push:
branches: [main, master]
pull_request:
branches: [main, master, release-*]

jobs:
My-Job-Name:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.11.7'
cache: 'pip'

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
python manage.py test
python manage.py check
pytest
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ asgiref==3.4.1
Django==3.2.9
pytz==2021.3
sqlparse==0.4.2
mypy==1.9.0

0 comments on commit dc7a5e1

Please sign in to comment.