Skip to content
Open
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
29 changes: 15 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: tests
permissions:
contents: read
Expand All @@ -17,15 +16,18 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.14", "3.13", "3.12"]
os: [ubuntu-latest, macos-latest] # TODO: windows-latest
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
- name: 'Install git on Windows via Chocolatey'
if: runner.os == 'Windows'
run: |
echo $GITHUB_REF $GITHUB_SHA
git clone https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_SHA:temporary-ci-branch
git checkout $GITHUB_SHA || (git fetch && git checkout $GITHUB_SHA)
choco install git -y

- name: 'Checkout'
uses: actions/checkout@main
with:
fetch-depth: 0

- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@main
Expand All @@ -44,31 +46,31 @@ jobs:
- name: 'Bootstrap app venv'
# The first CLI call will create the .venv
run: |
./cli.py version
python3 cli.py version

- name: 'app CLI help'
run: |
./cli.py --help
python3 cli.py --help

- name: 'Bootstrap dev venv'
# The first CLI call will create the .venv
run: |
./dev-cli.py version
python3 dev-cli.py version

- name: 'dev CLI help'
run: |
./dev-cli.py --help
python3 dev-cli.py --help

- name: 'Run pip-audit'
run: |
./dev-cli.py pip-audit
python3 dev-cli.py pip-audit

- name: 'Run tests with Python v${{ matrix.python-version }}'
env:
PYTHONUNBUFFERED: 1
PYTHONWARNINGS: always
run: |
./dev-cli.py coverage
python3 dev-cli.py coverage

- name: 'Upload coverage report'
uses: codecov/codecov-action@main
Expand All @@ -78,4 +80,3 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ Overview of main changes:

[comment]: <> (✂✂✂ auto generated history start ✂✂✂)

* [**dev**](https://github.com/jedie/PyHardLinkBackup/compare/v1.8.1...main)
* 2026-01-25 - Github CI: Activate tests under windows
* [v1.8.1](https://github.com/jedie/PyHardLinkBackup/compare/v1.8.0...v1.8.1)
* 2026-01-24 - Update packaging commands related to new direct "uv" usage
* 2026-01-24 - Bugfix "rebuild" command
Expand All @@ -300,11 +302,11 @@ Overview of main changes:
* 2026-01-22 - Optimize progress bars for smaller screens
* [v1.7.3](https://github.com/jedie/PyHardLinkBackup/compare/v1.7.2...v1.7.3)
* 2026-01-21 - Handle directory symlinks correct
* [v1.7.2](https://github.com/jedie/PyHardLinkBackup/compare/v1.7.1...v1.7.2)
* 2026-01-21 - Display "Remaining time" to files and sizes, too.

<details><summary>Expand older history entries ...</summary>

* [v1.7.2](https://github.com/jedie/PyHardLinkBackup/compare/v1.7.1...v1.7.2)
* 2026-01-21 - Display "Remaining time" to files and sizes, too.
* [v1.7.1](https://github.com/jedie/PyHardLinkBackup/compare/v1.7.0...v1.7.1)
* 2026-01-19 - Update requirements to fix problems under Windows
* [v1.7.0](https://github.com/jedie/PyHardLinkBackup/compare/v1.6.0...v1.7.0)
Expand Down
Loading