forked from tools-life/taskwiki
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Switch from Travis to GitHub Actions (faster)
Primary motivation for this is speed: GitHub Actions doesn't limit the number of concurrent jobs to 4, and also provides a docker registry (GitHub Packages) that we can use to cache the image (building the image takes cca 5 minutes, fetching it would take less than 10 seconds). This is done in another commit. The workflow definition is a bit more complicated because coveralls support for GitHub Actions is less mature than for Travis CI, so we need to manually tell coveralls that all parallel builds have finished and that it can publish the combined result. Also, coveralls-python support is work-in-progress (TheKevJames/coveralls-python#227) so I've tagged a working snapshot of that PR in my fork. Once it's in a released version of coveralls-python I'll switch to it.
- Loading branch information
Showing
6 changed files
with
49 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: tests | ||
on: [push, pull_request] | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- TASK_VERSION: v2.4.0 | ||
- TASK_VERSION: v2.4.1 | ||
- TASK_VERSION: v2.4.2 | ||
- TASK_VERSION: v2.4.3 | ||
- TASK_VERSION: v2.4.4 | ||
- TASK_VERSION: v2.5.0 | ||
- TASK_VERSION: v2.5.1 | ||
continue-on-error: ${{ matrix.continue-on-error == true }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare docker image | ||
run: docker-compose build --build-arg TASK_VERSION=${{ matrix.TASK_VERSION }} tests | ||
- name: Test | ||
run: make test PYTEST_FLAGS="-n8" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_PARALLEL: true | ||
|
||
coveralls-finished: | ||
needs: tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Finished | ||
uses: coverallsapp/github-action@v1.1.1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel-finished: true |
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
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