File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Test Suite
3+
4+ on :
5+ push :
6+ branches : ["master"]
7+ pull_request :
8+ branches : ["master", "version-*"]
9+
10+ jobs :
11+ tests :
12+ name : " Python ${{ matrix.python-version }}"
13+ runs-on : " ubuntu-latest"
14+
15+ strategy :
16+ matrix :
17+ python-version : ["3.10"]
18+
19+ steps :
20+ - uses : " actions/checkout@v4"
21+ - uses : " actions/setup-python@v6"
22+ with :
23+ python-version : " ${{ matrix.python-version }}"
24+ - name : " Install dependencies"
25+ run : " scripts/install"
26+
27+ # - name: "Run linting checks"
28+ # run: "scripts/check"
29+ # - name: "Build package & docs"
30+ # run: "scripts/build"
31+ # - name: "Run tests"
32+ # run: "scripts/test"
33+ # - name: "Enforce coverage"
34+ # run: "scripts/coverage"
Original file line number Diff line number Diff line change 1+ #! /bin/sh -e
2+
3+ # Use the Python executable provided from the `-p` option, or a default.
4+ [ " $1 " = " -p" ] && PYTHON=$2 || PYTHON=" python3"
5+
6+ REQUIREMENTS=" requirements.txt"
7+ VENV=" venv"
8+
9+ set -x
10+
11+ if [ -z " $GITHUB_ACTIONS " ]; then
12+ " $PYTHON " -m venv " $VENV "
13+ PIP=" $VENV /bin/pip"
14+ else
15+ PIP=" pip"
16+ fi
17+
18+ " $PIP " install -U pip
19+ " $PIP " install -r " $REQUIREMENTS "
You can’t perform that action at this time.
0 commit comments