Replace deprecated python.version
with build.tools.python
(Read t…
#91
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
name: tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.6", "3.7", "3.8"] | |
htcondor-version: ["9.0", "9.x"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image for testing | |
run: docker build -t htmap-test:$GITHUB_RUN_ID --file docker/Dockerfile --build-arg HTCONDOR_VERSION=${{ matrix.htcondor-version }} --build-arg PYTHON_VERSION=${{ matrix.python-version }} . | |
- name: Run tests inside the Docker image (and upload coverage) | |
run: docker run --mount type=bind,src="$PWD",dst=/home/mapper/htmap htmap-test:$GITHUB_RUN_ID bash tests/ci.sh |