-
Notifications
You must be signed in to change notification settings - Fork 72
49 lines (40 loc) · 1.31 KB
/
tests.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
46
47
48
49
name: Run unit tests & integration tests
on:
push:
branches: [ stable ]
pull_request:
branches: [ stable ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.6, 3.8 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- name: Add path for Poetry
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install Dependencies
run: poetry install --no-interaction
# Install Compilers for integration tests
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest
- name: Install other compilers
run: |
sudo apt-get update
sudo apt-get install nim mono-complete julia
- name: Run Unit Tests and Integration Tests
run: |
poetry run atcoder-tools gen arc050 --without-login
poetry run nosetests tests --exe -v --with-coverage --cover-package=atcodertools
poetry run codecov