Skip to content

Commit 8485091

Browse files
author
Ralf Grubenmann
committed
Merge branch 'add_unicode_support' of github.com:Panaetius/cwltool into add_unicode_support
2 parents 9752193 + a056ac8 commit 8485091

File tree

1,016 files changed

+239645
-20312
lines changed

Some content is hidden

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

1,016 files changed

+239645
-20312
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This issue tracker is for reporting bugs in cwltool (the CWL reference implementation) itself. Please use the [Gitter channel](https://gitter.im/common-workflow-language/common-workflow-language) or [Biostars forum](https://www.biostars.org/) for general questions about using cwltool to create/run workflows or issues not related to cwltool. Don't forget to use cwl tag when posting on Biostars Forum.
1+
This issue tracker is for reporting bugs in cwltool (the CWL reference implementation) itself. Please use the [Gitter channel](https://gitter.im/common-workflow-language/common-workflow-language) or [CWL Discourse Forum](https://cwl.discourse.group/) for general questions about using cwltool to create/run workflows or issues not related to cwltool. Don't forget to use cwl tag when posting on Biostars Forum.
22

33
If you'd like to report a bug, fill out the template below and provide any extra information that may be useful / related to your problem. Ideally, you create an [a Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve) reproducing the problem before opening an issue to ensure it's not caused by something in your code.
44

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
contact_links:
2+
- name: CWL Community Forum
3+
url: https://cwl.discourse.group/c/q-and-a/5
4+
about: Please ask and answer questions here.

.github/workflows/ci-tests.yml

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
name: Continous integration tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
env:
11+
singularity_version: 3.6.4
12+
13+
jobs:
14+
15+
tox:
16+
name: CI tests via Tox
17+
18+
runs-on: ubuntu-20.04
19+
20+
strategy:
21+
matrix:
22+
py-ver-major: [3]
23+
py-ver-minor: [6, 7, 8, 9]
24+
step: [lint, unit, bandit, mypy]
25+
26+
env:
27+
py-semver: ${{ format('{0}.{1}', matrix.py-ver-major, matrix.py-ver-minor) }}
28+
TOXENV: ${{ format('py{0}{1}-{2}', matrix.py-ver-major, matrix.py-ver-minor, matrix.step) }}
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Set up Singularity
36+
if: ${{ matrix.step == 'unit' || matrix.step == 'mypy' }}
37+
uses: eWaterCycle/setup-singularity@v6
38+
with:
39+
singularity-version: ${{ env.singularity_version }}
40+
41+
- name: Give the test runner user a name to make provenance happy.
42+
if: ${{ matrix.step == 'unit' || matrix.step == 'mypy' }}
43+
run: sudo usermod -c 'CI Runner' $(whoami)
44+
45+
- name: Set up Python
46+
uses: actions/setup-python@v2
47+
with:
48+
python-version: ${{ env.py-semver }}
49+
50+
- name: Cache for pip
51+
uses: actions/cache@v2
52+
with:
53+
path: ~/.cache/pip
54+
key: ${{ runner.os }}-pip-${{ matrix.step }}-${{ hashFiles('requirements.txt', 'tox.ini') }}
55+
56+
- name: Upgrade setuptools and install tox
57+
run: |
58+
pip install -U pip setuptools wheel
59+
pip install tox tox-gh-actions
60+
61+
- name: MyPy cache
62+
if: ${{ matrix.step == 'mypy' }}
63+
uses: actions/cache@v2
64+
with:
65+
path: .mypy_cache/${{ env.py-semver }}
66+
key: mypy-${{ env.py-semver }}
67+
68+
- name: Test with tox
69+
run: tox
70+
71+
- name: Upload coverage to Codecov
72+
if: ${{ matrix.step == 'unit' }}
73+
uses: codecov/codecov-action@v1
74+
with:
75+
fail_ci_if_error: true
76+
77+
tox-style:
78+
name: CI linters via Tox
79+
80+
runs-on: ubuntu-20.04
81+
82+
strategy:
83+
matrix:
84+
step: [lint-readme, shellcheck, pydocstyle]
85+
86+
env:
87+
py-semver: 3.9
88+
TOXENV: ${{ format('py39-{0}', matrix.step) }}
89+
90+
steps:
91+
- uses: actions/checkout@v2
92+
with:
93+
fetch-depth: 0
94+
95+
- name: Set up Python
96+
uses: actions/setup-python@v2
97+
with:
98+
python-version: ${{ env.py-semver }}
99+
100+
- name: Cache for pip
101+
uses: actions/cache@v2
102+
with:
103+
path: ~/.cache/pip
104+
key: ${{ runner.os }}-pip-${{ matrix.step }}-${{ hashFiles('requirements.txt') }}
105+
106+
- name: Upgrade setuptools and install tox
107+
run: |
108+
pip install -U pip setuptools wheel
109+
pip install tox tox-gh-actions
110+
111+
- if: ${{ matrix.step == 'pydocstyle' && github.event_name == 'pull_request'}}
112+
name: Create local branch for diff-quality for PRs
113+
run: git branch ${{github.base_ref}} origin/${{github.base_ref}}
114+
115+
- name: Test with tox
116+
run: tox
117+
118+
conformance_tests:
119+
name: CWL spec conformance tests
120+
121+
runs-on: ubuntu-20.04
122+
123+
strategy:
124+
matrix:
125+
cwl-version: [v1.0, v1.1, v1.2]
126+
127+
steps:
128+
- uses: actions/checkout@v2
129+
130+
- name: Set up Python
131+
uses: actions/setup-python@v2
132+
with:
133+
python-version: 3.9
134+
135+
- name: Cache for pip
136+
uses: actions/cache@v2
137+
with:
138+
path: ~/.cache/pip
139+
key: ${{ runner.os }}-conformance-${{ matrix.step }}-${{ hashFiles('requirements.txt') }}
140+
141+
- name: Run CWL conformance tests ${{ matrix.cwl-version }}
142+
env:
143+
version: ${{ matrix.cwl-version }}
144+
run: ./conformance-test.sh
145+
146+
release_test:
147+
name: cwltool release test
148+
149+
runs-on: ubuntu-20.04
150+
151+
steps:
152+
- uses: actions/checkout@v2
153+
154+
- name: Set up Singularity
155+
uses: eWaterCycle/setup-singularity@v6
156+
with:
157+
singularity-version: ${{ env.singularity_version }}
158+
159+
- name: Set up Python
160+
uses: actions/setup-python@v2
161+
with:
162+
python-version: 3.9
163+
164+
- name: Give the test runner user a name to make provenance happy.
165+
run: sudo usermod -c 'CI Runner' $(whoami)
166+
167+
- name: Cache for pip
168+
uses: actions/cache@v2
169+
with:
170+
path: ~/.cache/pip
171+
key: ${{ runner.os }}-pip-release-${{ hashFiles('requirements.txt', 'test-requirements.txt') }}
172+
173+
- name: Install packages
174+
run: |
175+
pip install -U pip setuptools wheel
176+
pip install virtualenv
177+
178+
- name: Release test
179+
env:
180+
RELEASE_SKIP: head
181+
run: ./release-test.sh

.github/workflows/codeql-analysis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Code scanning - action"
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 10 * * 2'
8+
9+
jobs:
10+
CodeQL-Build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
with:
18+
# We must fetch at least the immediate parents so that if this is
19+
# a pull request then we can checkout the head.
20+
fetch-depth: 2
21+
22+
# If this run was triggered by a pull request event, then checkout
23+
# the head of the pull request instead of the merge commit.
24+
- run: git checkout HEAD^2
25+
if: ${{ github.event_name == 'pull_request' }}
26+
27+
# Initializes the CodeQL tools for scanning.
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v1
30+
with:
31+
languages: python
32+
33+
- name: Perform CodeQL Analysis
34+
uses: github/codeql-action/analyze@v1

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ lib/
4242
.cache/
4343
cache/
4444
.coverage
45+
.coverage.*
4546
coverage.xml
4647
htmlcov
4748
output
@@ -51,3 +52,5 @@ response.txt
5152
test.txt
5253
time.txt
5354
value
55+
56+
.python-version

.mergify.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
pull_request_rules:
2+
- name: Automatic merge on approval and when when GitHub branch protection passes on main
3+
conditions:
4+
- "#approved-reviews-by>=1"
5+
- -draft
6+
- base=main
7+
actions:
8+
merge:
9+
method: merge
10+
strict: smart+fasttrack
11+
12+
pull_request_rules:
13+
- name: Automatic merge for leadership team members when there are no reviewers and the label is "ready"
14+
conditions:
15+
- "#review-requested=0"
16+
- "#changes-requested-reviews-by<1"
17+
- -draft
18+
- base=main
19+
- author=@leadership
20+
- label=ready
21+
actions:
22+
merge:
23+
method: merge
24+
strict: smart+fasttrack

.travis.singularity_key.txt

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

.travis.yml

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

0 commit comments

Comments
 (0)