-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 916 Bytes
/
ci-test-python.yml
File metadata and controls
37 lines (30 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Python CI testing
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on push or pull request, but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, reopened, ready_for_review, synchronize]
defaults:
run:
shell: bash
jobs:
pytester:
runs-on: ubuntu-latest
# Timeout: https://stackoverflow.com/a/59076067/4521646
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
with:
submodules: recursive # Ensures submodules are initialized and updated
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install package & dependencies
run: |
pip install -r requirements.txt
pip install -e .
- name: Tests
run: pytest tests