Change git url and git config to fix CI failure #165
Workflow file for this run
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: Python tests | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
pull_request: | |
branches: | |
- master | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
TOX_VERSION: 3.23.0 | |
jobs: | |
py38: | |
name: py38 | |
runs-on: ubuntu-latest | |
container: | |
# python:3.8-buster has git>=2.20 which actions/checkout@v2 requires | |
image: python:3.8-buster | |
steps: | |
- name: Configure git | |
shell: bash | |
run: | | |
git config --global --add safe.directory $(pwd) | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
run: | | |
pip3 install tox==${{ env.TOX_VERSION }} | |
- name: Run pytest | |
run: | | |
tox |