mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00

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.
20 lines
457 B
YAML
20 lines
457 B
YAML
version: '3'
|
|
services:
|
|
tests:
|
|
build: .
|
|
volumes:
|
|
- ".:/root/.vim/bundle/taskwiki:ro"
|
|
network_mode: "host"
|
|
security_opt:
|
|
- label=type:container_runtime_t
|
|
tty: true
|
|
environment:
|
|
COVERALLS_PARALLEL:
|
|
GITHUB_ACTIONS:
|
|
GITHUB_HEAD_REF:
|
|
GITHUB_REF:
|
|
GITHUB_RUN_ID:
|
|
GITHUB_RUN_NUMBER:
|
|
GITHUB_SHA:
|
|
GITHUB_TOKEN:
|
|
PYTEST_FLAGS: "-o cache_dir=/tmp/pytest-cache ${PYTEST_FLAGS:-}"
|