Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
test workflow
  • Loading branch information
valhassan authored Apr 16, 2024
1 parent e7a8263 commit 7c4b677
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: test
on: [push, pull_request]
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: clone repo
uses: actions/[email protected]
- name: set up python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: test with pytest
run: |
pytest --cov=. --cov-report html

0 comments on commit 7c4b677

Please sign in to comment.