-
Notifications
You must be signed in to change notification settings - Fork 40
44 lines (37 loc) · 998 Bytes
/
ci.yml
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
38
39
40
41
42
43
44
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest]
include:
- python-version: "3.11"
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout demo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements.txt'
- name: Install dependencies
run: |
python3 -m pip install -U pip
python3 -m pip install -r requirements.txt
- name: Run demo
run: |
python3 run_demo_md.py