Skip to content

Commit f6d9054

Browse files
committed
add github actions
1 parent 95020ab commit f6d9054

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/install-test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Python Install and Test
2+
3+
on:
4+
push:
5+
branches: [ '\d+.x' ]
6+
pull_request:
7+
branches: [ '\d+.x' ]
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
install-test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
21+
# Set up Python
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: '3.9'
26+
27+
# Install dependencies
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install -r requirements.txt
32+
33+
# Run tests
34+
- name: Run tests
35+
run: pytest

0 commit comments

Comments
 (0)