Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add pytest
Browse files Browse the repository at this point in the history
abhidg committed Nov 15, 2024
1 parent 254fe6b commit 9538a29
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: tests

on:
push:
branches: [main, i20-enable-pytest]
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
python3 -m pip install pytest
- name: Test with pytest
run: |
python3 -m pytest

0 comments on commit 9538a29

Please sign in to comment.