Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pycgtool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Graham
pycgtool
Commits
200a2c0d
Commit
200a2c0d
authored
4 years ago
by
James Graham
Browse files
Options
Downloads
Patches
Plain Diff
ci: use poetry directly in CI build - skip make
parent
89f9ac55
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/python-package.yml
+12
-17
12 additions, 17 deletions
.github/workflows/python-package.yml
with
12 additions
and
17 deletions
.github/workflows/python-package.yml
+
12
−
17
View file @
200a2c0d
...
...
@@ -27,33 +27,28 @@ jobs:
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install pre-install dependencies
run
:
|
python -m pip install --upgrade pip
pip install poetry wheel
poetry config virtualenvs.in-project true
-
name
:
Cache venv
uses
:
actions/cache@v2
with
:
path
:
.venv
key
:
${{ matrix.os }}-${{ matrix.python-version }}-venv-${{ hashFiles('poetry.lock') }}
-
name
:
Install Poetry
uses
:
snok/install-poetry@v1.1.1
-
name
:
Install project dependencies
-
name
:
Install project
and
dependencies
run
:
|
poetry install
--no-root --extras docs --extras test
poetry install
-
name
:
Test with pytest
run
:
|
make test
poetry run pytest --cov=pycgtool --cov-report=
-
name
:
Lint with flake8 - stop build if fails
run
:
|
poetry run prospector --strictness veryhigh --test-warnings --tool pyflakes
-
name
:
Lint with flake8 and prospector
-
name
:
Full lint - don't stop build
run
:
|
make lin
t
poetry run prospector --strictness veryhigh --test-warnings --member-warnings --max-line-length 120 --zero-exi
t
-
name
:
Test that docs build
run
:
|
make docs
SPHINXBUILD="poetry run sphinx-build"
make
-C
docs
html
-
name
:
Check that test coverage is above 80%
run
:
|
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment