Skip to content
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
25 changes: 22 additions & 3 deletions .github/workflows/tests.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: tests
name: ci

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '**.rst'
pull_request:
paths-ignore:
- 'docs/**'
- '**.rst'

jobs:
build:
test:

runs-on: ubuntu-latest
strategy:
Expand All @@ -29,4 +35,17 @@ jobs:
env:
EE_SERVICE_ACCOUNT: ${{ secrets.EE_SERVICE_ACCOUNT }}
run: |
hatch run test:all
hatch run test:all -n 4

lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4

- name: Run pre-commit hooks
uses: pre-commit/action@v3.0.0
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.. image:: https://readthedocs.org/projects/wxee/badge/?version=latest&style=flat
:alt: Read the Docs
:target: https://wxee.readthedocs.io/en/latest/?badge=latest
.. image:: https://github.com/aazuspan/wxee/actions/workflows/tests.yml/badge.svg
.. image:: https://github.com/aazuspan/wxee/actions/workflows/ci.yml/badge.svg
:alt: Build status
:target: https://github.com/aazuspan/wxee

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ dependencies = [
"mock",
"pytest",
"pytest-cov",
"pytest-xdist",
"requests_mock",
]

Expand Down
1 change: 1 addition & 0 deletions test/test_xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import mock
import pytest
import netCDF4 # noqa (avoids warning https://github.com/pydata/xarray/issues/7259)
import xarray as xr


Expand Down
Loading