-
Notifications
You must be signed in to change notification settings - Fork 229
YML file: CI Migration to Github Actions #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a3b4d6e
Create yml draft
mvargas33 bc8c7a8
Update yml
mvargas33 1ec62a2
Update 2
mvargas33 dac8414
Update 3
mvargas33 faaf5d7
YML: Only Python3 versions
mvargas33 0456111
Add Codecov to CI
mvargas33 e6edd75
Mirroring actual yml from metric_learning repo
mvargas33 c3bdde2
Fix codecov
mvargas33 0a0c9e8
Fix old scikit learn
mvargas33 db1bde0
Update yml
mvargas33 8046281
Remove 3.9 from compatibility
mvargas33 09fdd03
Fixed issue with sklearn 0.20
mvargas33 ab3dc5f
Delete comments, and unnecesary workflow_dispatch
mvargas33 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: CI | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
# Checks compatibility with an old version of sklearn (0.20.3) | ||
compatibility: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.6', '3.7', '3.8'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run Tests with skggm + scikit-learn 0.20.3 | ||
env: | ||
SKGGM_VERSION: a0ed406586c4364ea3297a658f415e13b5cbdaf8 | ||
run: | | ||
sudo apt-get install liblapack-dev | ||
pip install --upgrade pip pytest | ||
pip install wheel cython numpy scipy codecov pytest-cov | ||
pip install scikit-learn==0.20.3 | ||
pip install git+https://github.com/skggm/skggm.git@${SKGGM_VERSION} | ||
pytest test --cov | ||
bash <(curl -s https://codecov.io/bash) | ||
|
||
# Run normal testing with the latests versions of all dependencies | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.6', '3.7', '3.8', '3.9'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run Tests without skggm | ||
run: | | ||
sudo apt-get install liblapack-dev | ||
pip install --upgrade pip pytest | ||
pip install wheel cython numpy scipy codecov pytest-cov scikit-learn | ||
pytest test --cov | ||
bash <(curl -s https://codecov.io/bash) | ||
- name: Run Tests with skggm | ||
env: | ||
SKGGM_VERSION: a0ed406586c4364ea3297a658f415e13b5cbdaf8 | ||
run: | | ||
pip install git+https://github.com/skggm/skggm.git@${SKGGM_VERSION} | ||
pytest test --cov | ||
bash <(curl -s https://codecov.io/bash) | ||
- name: Syntax checking with flake8 | ||
run: | | ||
pip install flake8 | ||
flake8 --extend-ignore=E111,E114 --show-source; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.