-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (24 loc) · 904 Bytes
/
run-tests.yml
File metadata and controls
30 lines (24 loc) · 904 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
# This workflow installs required Python dependencies and then runs the available tests.
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run Acceptance and Unit tests
on:
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10" # Only the oldest supported Python version is included here
- name: Install dependencies
run: |
python -m pip install --upgrade pip # upgrade pip to latest version
pip install . # install pyproject.toml dependencies - excludes optional dependencies (such as visualisation)
- name: Run tests
run: |
python run_tests.py