Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Windows CI from AppVeyor to GitHub Actions #2628

Merged
merged 1 commit into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/codespell-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test Codespell Windows
on:
- push
- pull_request
jobs:
test-windows:
name: Test Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.7'
- name: Install dependencies
run: |
python --version
pip install -U pip
pip install chardet setuptools
pip install -e .[dev]
- run: codespell --help
- run: codespell --version
- run: pytest codespell_lib
- uses: codecov/codecov-action@v3
35 changes: 0 additions & 35 deletions appveyor.yml

This file was deleted.

13 changes: 9 additions & 4 deletions codespell_lib/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,15 @@ def test_check_hidden(
assert cs.main("--check-hidden", d) == 2
assert cs.main("--check-hidden", "--check-filenames", d) == 5
# check again with a relative path
rel = op.relpath(d)
assert cs.main(rel) == 0
assert cs.main("--check-hidden", rel) == 2
assert cs.main("--check-hidden", "--check-filenames", rel) == 5
try:
rel = op.relpath(d)
except ValueError:
# Windows: path is on mount 'C:', start on mount 'D:'
pass
else:
assert cs.main(rel) == 0
assert cs.main("--check-hidden", rel) == 2
assert cs.main("--check-hidden", "--check-filenames", rel) == 5
# hidden subdirectory
assert cs.main(d) == 0
assert cs.main("--check-hidden", d) == 2
Expand Down