-
Notifications
You must be signed in to change notification settings - Fork 47
39 lines (29 loc) · 1.05 KB
/
test.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
name: libmelee test cases
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
steps:
- uses: actions/checkout@v1
- name: Install general dependencies (windows)
if: matrix.os == 'windows-latest'
run: python -m pip install --upgrade pip setuptools wheel
- name: Install general dependencies (linux/osx)
if: matrix.os != 'windows-latest'
run: python3 -m pip install --upgrade pip setuptools wheel
- name: Install libmelee dependencies (windows)
if: matrix.os == 'windows-latest'
run: python -m pip install -e .
- name: Install libmelee dependencies (linux/osx)
if: matrix.os != 'windows-latest'
run: python3 -m pip install -e .
- name: Test with unittest (windows)
if: matrix.os == 'windows-latest'
run: python test.py
- name: Test with unittest (linux/osx)
if: matrix.os != 'windows-latest'
run: python3 test.py