-
Notifications
You must be signed in to change notification settings - Fork 173
45 lines (39 loc) · 1.12 KB
/
test_PRs.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
45
# This workflow is designed to run through the process of installing, building, and executing
# basic PMapper unittests against PMapper's supported versions when there's a new PR aiming
# at the "master" branch
name: "Test Against Pythons"
on:
pull_request:
branches: [ master ]
workflow_dispatch:
permissions:
actions: read
issues: write
contents: read
discussions: write
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.6", "3.10"]
steps:
- name: "Grab Code"
uses: actions/checkout@v2
- name: "Install Python"
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: "Install PMapper"
shell: bash
working-directory: ${{ github.workspace }}
run: |
pip install .
pip show principalmapper
- name: "Run Test Cases"
shell: bash
working-directory: ${{ github.workspace }}
run: |
python -m unittest -v tests/test*