Skip to content

Commit

Permalink
Adds windows tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
  • Loading branch information
jeandet committed Mar 10, 2022
1 parent 3347e6c commit 587b985
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
submodules: true
- name: Install dependencies
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev python3-astropy lcov g++ ninja-build && sudo pip3 install --upgrade twine build meson
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev python3-astropy lcov g++ ninja-build && sudo pip3 install --upgrade requests twine build meson
- name: Configure with meson
run: meson -Db_coverage=true . build
- name: Build (meson)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonpublish-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: |
pip install twine build auditwheel
pip install --upgrade twine build auditwheel
FC=gfortran-11 CC=gcc-11 CXX=g++-11 python -m build .
- name: Publish on PyPi
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pythonpublish-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: |
pip install --upgrade twine build ninja hotdoc git+https://gitlab.com/tschoonj/mesonpep517@dump-pep425tags
pip install --upgrade twine build ninja requests wheel
ninja --version
python -m build .
- name: Publish on PyPi
env:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/tests-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python packages Windows

on: [push]

jobs:
build:
runs-on: windows-latest
strategy:
max-parallel: 1
matrix:
python-version: ['3.7', '3.10']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- name: Build python wheel
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: |
choco install ninja
pip install --upgrade twine build requests wheel meson
meson . build
ninja -C build
python -m build .
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pymod = import('python')
python3 = pymod.find_installation('python3')

extra_files = ['setup.py', 'pyproject.toml', 'README.md',
'.github/workflows/ccpp.yml', '.github/workflows/pythonpublish-linux.yml',
'.github/workflows/ccpp.yml','.github/workflows/tests-win.yml', '.github/workflows/pythonpublish-linux.yml',
'.github/workflows/pythonpublish-osx.yml', '.github/workflows/pythonpublish-win.yml']

tsyganenko = static_library('tsyganenko','src/Geopack-2008_dp.for','src/T96.for',
Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["mesonpep517", "ninja",]
requires = ["git+https://github.com/jeandet/mesonpep517@windows_fix_dump-pep425tags", "ninja>=1.8.2", "meson"]
build-backend = "mesonpep517.buildapi"


Expand All @@ -9,10 +9,9 @@ author = "Alexis Jeandet"
author-email = "alexis.jeandet@member.fsf.org"
summary = "A simple python wrapper of N. A. Tsyganenko Fortran models and Geopack module"
[project]
[urls]
homepage = "https://github.com/LaboratoryOfPlasmaPhysics/py_tsyganenko"
license = "GNU General Public License v3"
readme = "README.md"
requires-python=">=3.7"
license = "GNU General Public License v3"
readme = "README.md"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
Expand All @@ -25,3 +24,5 @@ classifiers = [
"Programming Language :: Python :: 3.8",
]
dependencies = []
[project.urls]
homepage = "https://github.com/LaboratoryOfPlasmaPhysics/py_tsyganenko"

0 comments on commit 587b985

Please # to comment.