-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 930 Bytes
/
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
40
41
42
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
PYTHONIOENCODING: utf-8
jobs:
build_and_test:
name: >
Build and test tr-lang on ${{ matrix.os }} using Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ '3.8', '3.9' ]
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Build
run: cargo build --verbose
- name: Run cargo tests
run: cargo test --verbose
- name: Python Version
run: python --version
- name: Install Python Dependencies
run: python -m pip install colorama typing
- name: Run test.py Tests
run: python test.py