Skip to content

Commit

Permalink
add gha for running pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed May 31, 2024
1 parent 64263e0 commit 071324d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: test-code
on: [push, pull_request]

# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
# Use pytest to run tests
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: pytest --> Run tests
run: pytest .

0 comments on commit 071324d

Please sign in to comment.