-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (39 loc) · 1.2 KB
/
run-tests.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
# Link repository with GitHub Actions
# https://docs.github.com/en/actions/learn-github-actions/introduction-to-github-actions
name: run-tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.10"]
steps:
# Checkout the latest code from the repo
# https://github.com/actions/checkout
- name: Checkout repo
uses: actions/checkout@v4
# Setup which version of Python to use
# https://github.com/actions/setup-python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# Display the Python version being used
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# Install the dependencies for the package.
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Build the book
- name: Build the book
run: jupyter-book build content/