Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PyFastANI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Larralde
PyFastANI
Commits
f3dc3ae2
Commit
f3dc3ae2
authored
3 years ago
by
Martin Larralde
Browse files
Options
Downloads
Patches
Plain Diff
Add `test.yml` Actions workflow to test and measure coverage
parent
b83354d4
No related branches found
Branches containing commit
Tags
v0.4.0
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/requirements.txt
+6
-0
6 additions, 0 deletions
.github/workflows/requirements.txt
.github/workflows/test.yml
+199
-0
199 additions, 0 deletions
.github/workflows/test.yml
with
205 additions
and
0 deletions
.github/workflows/requirements.txt
0 → 100644
+
6
−
0
View file @
f3dc3ae2
coverage ~=5.0
codecov ~=2.0
cython ~=0.29.16
wheel
auditwheel
setuptools >=46.4.0
This diff is collapsed.
Click to expand it.
.github/workflows/test.yml
0 → 100644
+
199
−
0
View file @
f3dc3ae2
name
:
Test
on
:
-
push
-
pull_request
jobs
:
test_linux
:
name
:
Test (Linux)
runs-on
:
ubuntu-latest
env
:
OS
:
Linux
strategy
:
matrix
:
include
:
-
python-version
:
3.5
python-release
:
v3.5
python-impl
:
CPython
-
python-version
:
3.6
python-release
:
v3.6
python-impl
:
CPython
-
python-version
:
3.7
python-release
:
v3.7
python-impl
:
CPython
-
python-version
:
3.8
python-release
:
v3.8
python-impl
:
CPython
-
python-version
:
3.9
python-release
:
v3.9
python-impl
:
CPython
-
python-version
:
pypy-3.6
python-release
:
v3.6
python-impl
:
PyPy
-
python-version
:
pypy-3.7
python-release
:
v3.7
python-impl
:
PyPy
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
name
:
Cache Python requirements
uses
:
actions/cache@v2
with
:
path
:
~/.cache/pip
key
:
${{ runner.os }}-pip-${{ matrix.python-version }}
restore-keys
:
${{ runner.os }}-pip-${{ matrix.python-version }}
-
name
:
Cache built C files
uses
:
actions/cache@v2
with
:
path
:
build
key
:
${{ runner.os }}-build-${{ matrix.python-version }}
restore-keys
:
${{ runner.os }}-build-${{ matrix.python-version }}
-
name
:
Setup Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Update pip
run
:
python -m pip install -U pip wheel setuptools
-
name
:
Install Python requirements
run
:
python -m pip install -r .github/workflows/requirements.txt
-
name
:
Build C extension
run
:
python setup.py build_ext --inplace --debug
-
name
:
Test with coverage
run
:
python -m coverage run -m unittest discover -vv
-
name
:
Upload to Codecov
uses
:
codecov/codecov-action@v1
with
:
flags
:
${{ matrix.python-impl }},${{ matrix.python-release }},${{ env.OS }}
name
:
test-python-${{ matrix.python-version }}
fail_ci_if_error
:
true
token
:
${{ secrets.CODECOV_TOKEN }}
test_osx
:
name
:
Test (OSX)
runs-on
:
macos-latest
env
:
OS
:
OSX
strategy
:
matrix
:
include
:
-
python-version
:
3.5
python-release
:
v3.5
python-impl
:
CPython
-
python-version
:
3.6
python-release
:
v3.6
python-impl
:
CPython
-
python-version
:
3.7
python-release
:
v3.7
python-impl
:
CPython
-
python-version
:
3.8
python-release
:
v3.8
python-impl
:
CPython
-
python-version
:
3.9
python-release
:
v3.9
python-impl
:
CPython
-
python-version
:
pypy-3.6
python-release
:
v3.6
python-impl
:
PyPy
-
python-version
:
pypy-3.7
python-release
:
v3.7
python-impl
:
PyPy
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
name
:
Cache Python requirements
uses
:
actions/cache@v2
with
:
path
:
~/.cache/pip
key
:
${{ runner.os }}-pip-${{ matrix.python-version }}
restore-keys
:
${{ runner.os }}-pip-${{ matrix.python-version }}
-
name
:
Cache built C files
uses
:
actions/cache@v2
with
:
path
:
build
key
:
${{ runner.os }}-build-${{ matrix.python-version }}
restore-keys
:
${{ runner.os }}-build-${{ matrix.python-version }}
-
name
:
Setup Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Update pip
run
:
python -m pip install -U pip wheel setuptools
-
name
:
Install Python requirements
run
:
python -m pip install -r .github/workflows/requirements.txt
-
name
:
Build C extension
run
:
python setup.py build_ext --inplace --debug
-
name
:
Test with coverage
run
:
python -m coverage run -m unittest discover -vv
-
uses
:
codecov/codecov-action@v1
with
:
flags
:
${{ matrix.python-impl }},${{ matrix.python-release }},${{ env.OS }}
name
:
test-python-${{ matrix.python-version }}
fail_ci_if_error
:
true
token
:
${{ secrets.CODECOV_TOKEN }}
test_windows
:
name
:
Test (Windows)
runs-on
:
windows-latest
env
:
OS
:
Windows
strategy
:
matrix
:
include
:
-
python-version
:
3.5
python-release
:
v3.5
python-impl
:
CPython
-
python-version
:
3.6
python-release
:
v3.6
python-impl
:
CPython
-
python-version
:
3.7
python-release
:
v3.7
python-impl
:
CPython
-
python-version
:
3.8
python-release
:
v3.8
python-impl
:
CPython
-
python-version
:
3.9
python-release
:
v3.9
python-impl
:
CPython
-
python-version
:
pypy-3.6
python-release
:
v3.6
python-impl
:
PyPy
-
python-version
:
pypy-3.7
python-release
:
v3.7
python-impl
:
PyPy
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
name
:
Cache built C files
uses
:
actions/cache@v2
with
:
path
:
build
key
:
${{ runner.os }}-build-${{ matrix.python-version }}
restore-keys
:
${{ runner.os }}-build-${{ matrix.python-version }}
-
name
:
Setup Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python-version }}
architecture
:
x64
-
name
:
Update pip
run
:
python -m pip install -U pip wheel setuptools
-
name
:
Install Python requirements
run
:
python -m pip install -r .github/workflows/requirements.txt
-
name
:
Build C extension
run
:
python setup.py build_ext --inplace
-
name
:
Test with coverage
run
:
python -m coverage run -m unittest discover -vv
-
name
:
Upload to Codecov
uses
:
codecov/codecov-action@v1
with
:
flags
:
${{ matrix.python-impl }},${{ matrix.python-release }},${{ env.OS }}
name
:
test-python-${{ matrix.python-version }}
fail_ci_if_error
:
true
token
:
${{ secrets.CODECOV_TOKEN }}
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