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

Fixes #144 runs tests on windows #145

Merged
merged 4 commits into from
Nov 16, 2023
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
46 changes: 46 additions & 0 deletions .github/workflows/windows_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Tests on Windows
on: [push, pull_request, workflow_dispatch]

jobs:
build:
name: Build and run tests on Windows
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.10","3.11","3.12"]
platform: [{ os: "windows-latest", python-architecture: "x64", rust-target: "x86_64-pc-windows-msvc" }]
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.platform.python-architecture }}

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform.rust-target }}

- name: Install build dependencies
shell: bash
env:
PYTHON: ${{ matrix.python-version }}
run: |
python -m pip install -U pip setuptools
python -m pip install -r requirements-dev.txt

- name: Build wheel
shell: bash
env:
PYTHON: ${{ matrix.python-version }}
run: python setup.py develop

- name: Run tests
env:
PYTHON: ${{ matrix.python-version }}
run: python -m pytest -vvv



216 changes: 28 additions & 188 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tempfile = "3.0.0"
talktosc = "0.2"
sshkeys = "0.3.2"
regex = "1"
time = "0.2"
time = "0.3"

[target.'cfg(not(target_os = "windows"))'.dependencies]
sequoia-openpgp = { default-features = false, features = ["crypto-nettle", "compression"] }
Expand Down
Loading