Skip to content

Commit dc73bc3

Browse files
ci: add python workflow
1 parent 0a38255 commit dc73bc3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/python.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: CI
2+
on: [push,pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Set up Python
9+
uses: actions/setup-python@v5
10+
with:
11+
python-version: '3.x'
12+
- run: |
13+
if [ -f requirements.txt ]; then pip install -r requirements.txt || true; fi
14+
if [ -d "${REPO_NAME}-tests" ]; then pip install pytest || true; pytest -q || true; fi

0 commit comments

Comments
 (0)