Skip to content

Commit

Permalink
!fixup Windows fixes
Browse files Browse the repository at this point in the history
- Ignore errors when executing `shutil.rmtree()`, because it seems like it's common to fail when deleting git repos on Windows, and since these are temp files, we don't really care that much there's garbage left. Any good OS should clean the temp folders automatically.
- Always find Jinja templates in `PosixPath` mode.
- Ignore `OSError` when trying to enter a possibly git root directory. This is yielded by Windows when the path is a URL and we don't really care about it.
- Fix some tests with non-windows haradcoded stuff.
- Fix a test that was using a Bash script. Modified to be Python, which should work fine cross-system.
- Do not modify EOL in CI.
- Use python executable in tests instead of python3.
- Update pre-commit versions to include pre-commit/pre-commit-hooks#509.
- Disable autorebasing.
  • Loading branch information
Jairo Llopis committed Aug 4, 2020
1 parent b756d89 commit 532a4b3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
python-version: [3.6, 3.7, 3.8]
runs-on: ${{ matrix.os }}
steps:
- run: git config --global user.name copier-ci
- run: git config --global user.email copier@copier
- run: git config --global core.autocrlf false
- run: git config --global core.eol lf
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
Expand All @@ -45,14 +49,6 @@ jobs:
key:
local-${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{
hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: git config --global user.name copier-ci
shell: bash
- run: git config --global user.email copier@copier
shell: bash
- run: git config --global core.autocrlf false
shell: bash
- run: git config --global core.eol lf
shell: bash
- run: python -m pip install poetry poetry-dynamic-versioning
shell: bash
- run: poetry install
Expand Down

0 comments on commit 532a4b3

Please sign in to comment.