Skip to content

Commit f95e2ea

Browse files
authored
Merge pull request #55 from chrishavlin/add_mac_windows_tests
add windows, mac tests
2 parents a26655e + c856147 commit f95e2ea

File tree

5 files changed

+41
-12
lines changed

5 files changed

+41
-12
lines changed

.github/workflows/run-pytest-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ name: Run tests
33
on: [pull_request]
44

55
jobs:
6-
build:
7-
8-
runs-on: ubuntu-latest
6+
test:
7+
name: ${{ matrix.platform }} py${{ matrix.python-version }}
8+
runs-on: ${{ matrix.platform }}
99
strategy:
1010
matrix:
11+
platform: [ubuntu-latest, windows-latest, macos-latest]
1112
python-version: ['3.9', '3.10', '3.11']
1213

1314
steps:
@@ -28,6 +29,7 @@ jobs:
2829

2930
# https://github.com/marketplace/actions/codecov#example-workflowyml-with-codecov-action
3031
- name: Upload coverage to Codecov
32+
if: matrix.os == 'ubuntu-latest'
3133
uses: codecov/codecov-action@v3
3234
with:
3335
directory: ./coverage/

.github/workflows/weekly-test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# weekly test, runs mondays at 2:30AM
2+
name: weekly_build
3+
4+
on:
5+
schedule:
6+
- cron: "30 2 * * 1"
7+
8+
jobs:
9+
test:
10+
name: ${{ matrix.platform }} py${{ matrix.python-version }}
11+
runs-on: ${{ matrix.platform }}
12+
strategy:
13+
matrix:
14+
platform: [ubuntu-latest, windows-latest, macos-latest]
15+
python-version: ['3.10']
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install -r requirements_dev.txt
27+
- name: Setup yt_xarray
28+
run: python -m pip install -e .
29+
- name: Run Tests
30+
run: pytest -v .

.readthedocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ python:
1616
install:
1717
- requirements: requirements.txt
1818
- requirements: requirements_dev.txt
19+
- requirements: requirements_docs.txt

requirements_dev.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
pip
2-
watchdog==0.9.0
3-
flake8==3.7.8
4-
tox==3.14.0
5-
coverage==4.5.4
6-
Sphinx==1.8.5
7-
jinja2<3.1.0
8-
twine==1.14.0
2+
twine
93
pre-commit
104
netCDF4
115
h5py
126
scipy
13-
pytest==6.2.4
7+
pytest
148
pytest-cov
15-
nbsphinx
169
dask[complete]

requirements_docs.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Sphinx==1.8.5
2+
jinja2<3.1.0
3+
nbsphinx

0 commit comments

Comments
 (0)