-
Notifications
You must be signed in to change notification settings - Fork 16
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 #39 from automl/development
Get branch up to date with development
- Loading branch information
Showing
6 changed files
with
452 additions
and
100 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 |
---|---|---|
|
@@ -45,7 +45,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
|
||
steps: | ||
|
@@ -73,6 +73,15 @@ jobs: | |
run: | | ||
pytest ${{ env.pytest-args }} ${{ env.test-dir }} | ||
- name: Coveralls GitHub Action | ||
uses: coverallsapp/github-action@v2 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' | ||
|
||
- name: Remove Coverage file | ||
uses: JesseTG/[email protected] | ||
with: | ||
path: coverage.lcov | ||
|
||
- name: Check for files left behind by test | ||
run: | | ||
before="${{ steps.status-before.outputs.BEFORE }}" | ||
|
@@ -82,79 +91,4 @@ jobs: | |
echo "git status from after: $after" | ||
echo "Not all generated files have been deleted!" | ||
exit 1 | ||
fi | ||
# Testing with conda | ||
conda-tests: | ||
name: conda-${{ matrix.python-version }}-${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} # Default to using bash on all and load (-l) .bashrc which miniconda uses | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Conda install | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install ${{ env.package-name }} | ||
run: | | ||
python -V | ||
python -m pip install --upgrade pip | ||
python -m pip install wheel | ||
python -m pip install -e ".${{ env.extra-requires }}" | ||
- name: Tests | ||
run: | | ||
pytest ${{ env.pytest-args }} ${{ env.test-dir }} | ||
# Testing a dist install | ||
dist-test: | ||
name: dist-${{ matrix.python-version }}-${{ matrix.os }} | ||
|
||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Create sdist | ||
id: sdist | ||
run: | | ||
python -m pip install --upgrade pip | ||
python setup.py sdist | ||
echo "${{env.package-name}}" | ||
echo "sdist_name=$(ls -t dist/${{ env.package-name }}-*.tar.gz | head -n 1)" >> $GITHUB_ENV | ||
- name: Install ${{ env.package-name }} | ||
run: | | ||
python -m pip install ${{ env.sdist_name }}${{ env.extra-requires }} | ||
- name: Tests | ||
run: | | ||
pytest ${{ env.pytest-args }} ${{ env.test-dir }} | ||
fi |
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
Oops, something went wrong.