Skip to content

Commit

Permalink
ci: add pytest, fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Nov 18, 2024
1 parent 1f0be0d commit 0d89d1f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: tests

on:
push:
branches: [main]
paths:
- '.github/workflows/tests.yml'
- 'l2gv2/**.py'
- 'tests/**.py'
- 'requirements.txt'
pull_request:
paths:
- '.github/workflows/tests.yml'
- 'l2gv2/**.py'
- 'tests/**.py'
- 'requirements.txt'
jobs:
ci:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python3 -m pip install -r requirements.txt
- name: Test with pytest
run: |
python3 -m pytest

0 comments on commit 0d89d1f

Please sign in to comment.