-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from sanger/develop
Develop to master
- Loading branch information
Showing
28 changed files
with
408 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,5 @@ forlint.sh | |
htmlcov | ||
lefthook.yml | ||
LICENSE | ||
mypy.ini | ||
README.md | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,96 +17,77 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11.1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install pipenv | ||
run: | | ||
pip install pipenv | ||
- name: Install dependencies | ||
run: | | ||
pipenv sync --dev --system | ||
- name: Check format with black | ||
run: | | ||
# stop the build if there are black formatting errors | ||
|
||
- uses: nelonoel/[email protected] | ||
|
||
- name: Build and tag the image for testing and release | ||
run: >- | ||
docker build . | ||
--file Dockerfile | ||
--tag tol-lab-share:black | ||
- name: Run tests against the image | ||
run: >- | ||
docker run | ||
--entrypoint '' | ||
tol-lab-share:black | ||
python -m black --check . | ||
flake8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11.1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install pipenv | ||
run: | | ||
pip install pipenv | ||
- name: Install dependencies | ||
run: | | ||
pipenv sync --dev --system | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
|
||
- uses: nelonoel/[email protected] | ||
|
||
- name: Build and tag the image for testing and release | ||
run: >- | ||
docker build . | ||
--file Dockerfile | ||
--tag tol-lab-share:flake8 | ||
- name: Run tests against the image | ||
run: >- | ||
docker run | ||
--entrypoint '' | ||
tol-lab-share:flake8 | ||
flake8 | ||
mypy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11.1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install pipenv | ||
run: | | ||
pip install pipenv | ||
- name: Install dependencies | ||
run: | | ||
pipenv sync --dev --system | ||
- name: Run mypy | ||
run: | | ||
|
||
- uses: nelonoel/[email protected] | ||
|
||
- name: Build and tag the image for testing and release | ||
run: >- | ||
docker build . | ||
--file Dockerfile | ||
--tag tol-lab-share:mypy | ||
- name: Run tests against the image | ||
run: >- | ||
docker run | ||
--entrypoint '' | ||
tol-lab-share:mypy | ||
python -m mypy . | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11.1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install pipenv | ||
run: | | ||
pip install pipenv | ||
- name: Install dependencies | ||
run: | | ||
pipenv sync --dev --system | ||
- name: Run tests and generate coverage report | ||
run: | | ||
python -m pytest -vx --cov=. --junitxml=pytest.xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
|
||
- uses: nelonoel/[email protected] | ||
|
||
- name: Build and tag the image for testing and release | ||
run: >- | ||
docker build . | ||
--file Dockerfile | ||
--tag tol-lab-share:pytest | ||
- name: Run tests against the image | ||
run: >- | ||
docker run | ||
--entrypoint '' | ||
tol-lab-share:pytest | ||
python -m pytest -vx --cov=. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.5 | ||
0.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.