Skip to content

Commit

Permalink
Create python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rehoumir authored Jul 12, 2024
1 parent f7c8a20 commit f8be679
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

name: Run Tests & Deploy
on: [push, pull_request]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -e '.[tests]'
- name: Install packages needed for CI
run: pip install pre-commit
- name: Lint all files
run: pre-commit run --all-files --show-diff-on-failure
- name: Run tests
run: pytest tests

0 comments on commit f8be679

Please sign in to comment.