This repository was archived by the owner on Dec 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 215
migrate to GitHub Actions #179
Merged
StrikerRUS
merged 5 commits into
scikit-learn-contrib:master
from
StrikerRUS:github_actions
May 28, 2021
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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
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,67 @@ | ||
name: Package tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.os }}, Python ${{ matrix.python_version }} (${{ matrix.python_arch }}) | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
python_version: | ||
- '3.6' | ||
- '3.7' | ||
- '3.8' | ||
- '3.9' | ||
python_arch: | ||
- x64 | ||
include: | ||
- os: windows-latest | ||
python_version: '3.6' | ||
python_arch: x86 | ||
- os: windows-latest | ||
python_version: '3.7' | ||
python_arch: x86 | ||
- os: windows-latest | ||
python_version: '3.8' | ||
python_arch: x86 | ||
- os: windows-latest | ||
python_version: '3.9' | ||
python_arch: x86 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 3 | ||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
architecture: ${{ matrix.python_arch }} | ||
- name: Check Python version | ||
shell: python | ||
run: | | ||
import struct | ||
import sys | ||
|
||
assert sys.version_info[:2] == tuple(map(int, "${{ matrix.python_version }}".split("."))) | ||
assert f"x{struct.calcsize('P') * 8}".replace("32", "86") == "${{ matrix.python_arch }}" | ||
- name: Install package | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements_build.txt -r requirements_test.txt | ||
python setup.py install | ||
- name: Run tests | ||
run: pytest -v --pyargs lightning |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
include MANIFEST.in | ||
include Makefile | ||
include requirements*.txt | ||
recursive-include lightning *.c *.h *.cpp *.pyx *.pxd |
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
This file was deleted.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check that this stuff works:
https://github.com/StrikerRUS/lightning/commit/340aa6aff902c472ab6b60c7226a07d26f4996d5
and corresponding to the commit above workflow run (note that all
x86
jobs fail): https://github.com/StrikerRUS/lightning/actions/runs/860558934