Skip to content

Commit eabe896

Browse files
committed
modernize
1 parent eabc56e commit eabe896

File tree

184 files changed

+331
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+331
-216
lines changed

.github/workflows/ci-tests.yml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
name: Continous integration tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
tox:
12+
name: CI tests via Tox
13+
14+
runs-on: ubuntu-20.04
15+
16+
strategy:
17+
matrix:
18+
py-ver-major: [3]
19+
py-ver-minor: [6, 7, 8, 9]
20+
step: [lint, unit, mypy]
21+
22+
env:
23+
py-semver: ${{ format('{0}.{1}', matrix.py-ver-major, matrix.py-ver-minor) }}
24+
TOXENV: ${{ format('py{0}{1}-{2}', matrix.py-ver-major, matrix.py-ver-minor, matrix.step) }}
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Set up Python
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ env.py-semver }}
33+
34+
- name: Cache for pip
35+
uses: actions/cache@v2
36+
with:
37+
path: ~/.cache/pip
38+
key: ${{ runner.os }}-pip-${{ matrix.step }}-${{ hashFiles('requirements.txt', 'tox.ini') }}
39+
40+
- name: Upgrade setuptools and install tox
41+
run: |
42+
pip install -U pip setuptools wheel
43+
pip install tox tox-gh-actions
44+
45+
- name: MyPy cache
46+
if: ${{ matrix.step == 'mypy' }}
47+
uses: actions/cache@v2
48+
with:
49+
path: .mypy_cache/${{ env.py-semver }}
50+
key: mypy-${{ env.py-semver }}
51+
52+
- name: Test with tox
53+
run: tox
54+
55+
- name: Upload coverage to Codecov
56+
if: ${{ matrix.step == 'unit' }}
57+
uses: codecov/codecov-action@v1
58+
with:
59+
fail_ci_if_error: true
60+
61+
tox-style:
62+
name: CI linters via Tox
63+
64+
runs-on: ubuntu-20.04
65+
66+
strategy:
67+
matrix:
68+
step: [lint-readme, pydocstyle]
69+
70+
env:
71+
py-semver: 3.9
72+
TOXENV: ${{ format('py39-{0}', matrix.step) }}
73+
74+
steps:
75+
- uses: actions/checkout@v2
76+
with:
77+
fetch-depth: 0
78+
79+
- name: Set up Python
80+
uses: actions/setup-python@v2
81+
with:
82+
python-version: ${{ env.py-semver }}
83+
84+
- name: Cache for pip
85+
uses: actions/cache@v2
86+
with:
87+
path: ~/.cache/pip
88+
key: ${{ runner.os }}-pip-${{ matrix.step }}-${{ hashFiles('requirements.txt') }}
89+
90+
- name: Upgrade setuptools and install tox
91+
run: |
92+
pip install -U pip setuptools wheel
93+
pip install tox tox-gh-actions
94+
95+
- if: ${{ matrix.step == 'pydocstyle' && github.event_name == 'pull_request'}}
96+
name: Create local branch for diff-quality for PRs
97+
run: git branch ${{github.base_ref}} origin/${{github.base_ref}}
98+
99+
- name: Test with tox
100+
run: tox
101+
102+
release_test:
103+
name: cwltest release test
104+
105+
runs-on: ubuntu-20.04
106+
107+
steps:
108+
- uses: actions/checkout@v2
109+
110+
- name: Set up Python
111+
uses: actions/setup-python@v2
112+
with:
113+
python-version: 3.9
114+
115+
- name: Cache for pip
116+
uses: actions/cache@v2
117+
with:
118+
path: ~/.cache/pip
119+
key: ${{ runner.os }}-pip-release-${{ hashFiles('requirements.txt', 'test-requirements.txt') }}
120+
121+
- name: Install packages
122+
run: |
123+
pip install -U pip setuptools wheel
124+
pip install virtualenv
125+
126+
- name: Release test
127+
env:
128+
RELEASE_SKIP: head
129+
run: ./release-test.sh

.travis.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
include Makefile gittaggers.py
1+
include Makefile gittaggers.py test-requirements.txt mypy_requirements.txt requirements.txt
22
include cwltest/cwltest-schema.yml
33
include cwltest/tests/*
44
include cwltest/tests/test-data/*
55
include cwltest/tests/test-data/v1.0/*
6+
recursive-include typeshed *.py?
67
global-exclude *~
78
global-exclude *.pyc

0 commit comments

Comments
 (0)