Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
963 bytes
|
Line | |
---|
1 | # TODO: Enable os: windows-latest
|
---|
2 | # TODO: Enable python-version: 3.5
|
---|
3 | # TODO: Enable pytest --doctest-modules
|
---|
4 |
|
---|
5 | name: Python_tests
|
---|
6 | on: [push, pull_request]
|
---|
7 | jobs:
|
---|
8 | Python_tests:
|
---|
9 | runs-on: ${{ matrix.os }}
|
---|
10 | strategy:
|
---|
11 | fail-fast: false
|
---|
12 | max-parallel: 15
|
---|
13 | matrix:
|
---|
14 | os: [macos-latest, ubuntu-latest] # , windows-latest]
|
---|
15 | python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
|
---|
16 | steps:
|
---|
17 | - uses: actions/checkout@v2
|
---|
18 | - name: Set up Python ${{ matrix.python-version }}
|
---|
19 | uses: actions/setup-python@v2
|
---|
20 | with:
|
---|
21 | python-version: ${{ matrix.python-version }}
|
---|
22 | - name: Install dependencies
|
---|
23 | run: |
|
---|
24 | python -m pip install --upgrade pip
|
---|
25 | pip install -r requirements_dev.txt
|
---|
26 | - name: Lint with flake8
|
---|
27 | run: flake8 . --count --show-source --statistics
|
---|
28 | - name: Test with pytest
|
---|
29 | run: pytest
|
---|
30 | # - name: Run doctests with pytest
|
---|
31 | # run: pytest --doctest-modules
|
---|
Note:
See
TracBrowser
for help on using the repository browser.