-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and clean CI configuration (#183)
* remove travis configuration * fix tox minimal * fix ubuntu dependecies install * remove codecov from minimal req * add assert to test_exception_pass test * add prerelase check * add download data step * change run branch on develop * fix if to check runner os instead of matrix.os * remove travis specific things * try if specyfic environ for azure pipelines work * another try of reference to deps * remove obsolete tox config file (azure specific) * tight prerelease check * correct numpy deprecation * clean float part two * fix deepsource warnings * add tox-gh-actions install
- Loading branch information
Showing
30 changed files
with
260 additions
and
215 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: "{{ env.TITLE }}" | ||
labels: [bug] | ||
--- | ||
The {{ workflow }} workflow failed on {{ date | date("YYYY-MM-DD HH:mm") }} UTC | ||
|
||
The most recent failing test was on {{ env.PLATFORM }} py{{ env.PYTHON }} | ||
with commit: {{ sha }} | ||
|
||
Full run: https://github.com/{{ payload.repository.full_name }}/actions/runs/{{ env.RUN_ID }} | ||
|
||
(This post will be updated if another test fails, as long as this issue remains open.) |
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
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# An "early warning" cron job that will install dependencies | ||
# with `pip install --pre` periodically to test for breakage | ||
# (and open an issue if a test fails) | ||
name: --pre Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
schedule: | ||
- cron: '0 */12 * * *' # every 12 hours | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
download_data: | ||
name: Download test data | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- shell: bash | ||
run: bash build_utils/download_data.sh | ||
- name: Upload test data | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: test_data | ||
path: test_data | ||
|
||
|
||
test: | ||
name: ${{ matrix.platform }} py${{ matrix.python }} ${{ matrix.backend }} --pre | ||
runs-on: ${{ matrix.platform }} | ||
needs: download_data | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [windows-latest, macos-latest, ubuntu-latest] | ||
python: [3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install Linux libraries | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 \ | ||
libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \ | ||
libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 | ||
- name: Install Windows OpenGL | ||
if: runner.os == 'Windows' | ||
run: | | ||
git clone --depth 1 git://github.com/pyvista/gl-ci-helpers.git | ||
powershell gl-ci-helpers/appveyor/install_opengl.ps1 | ||
- name: Download test data | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: test_data | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install setuptools tox tox-gh-actions | ||
- name: Test with tox | ||
# run tests using pip install --pre | ||
run: tox -v --pre | ||
env: | ||
PLATFORM: ${{ matrix.platform }} | ||
PYVISTA_OFF_SCREEN: True # required for opengl on windows | ||
|
||
# If something goes wrong, we can open an issue in the repo | ||
- name: Report Failures | ||
if: ${{ failure() }} | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PLATFORM: ${{ matrix.platform }} | ||
PYTHON: ${{ matrix.python }} | ||
RUN_ID: ${{ github.run_id }} | ||
TITLE: '[test-bot] pip install --pre is failing' | ||
with: | ||
filename: .github/TEST_FAIL_TEMPLATE.md | ||
update_existing: true |
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
File renamed without changes.
File renamed without changes.
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.