forked from maropu/predictive-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.01 KB
/
tests.yml
File metadata and controls
39 lines (37 loc) · 1.01 KB
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: Run tests
on:
push:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [1.8, 11]
# python: [3.7, 3.8, 3.9, 3.10]
python: [3.7, 3.8]
steps:
- name: Checkout predictive-testing repository
uses: actions/checkout@v2
# In order to fetch changed files
with:
fetch-depth: 0
# We need JDK for running 'javap'
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Install Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install Python packages (Python ${{ matrix.python }})
run: python -m pip install -r ./bin/requirements.txt
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./bin/run-tests