Skip to content

Commit

Permalink
#3 Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
astropenguin committed Aug 22, 2021
1 parent d8f15c7 commit a3a8637
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
sudo apt install pandoc
pip install poetry
poetry install
- name: Build docs
run: poetry run scripts/docs
run: poetry run docs/build
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/test.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: Test
name: Tests

on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
job:
name: Test
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.7, 3.8, 3.9]
env:
TESTED_DIRS: docs tests xarray_accessors
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
Expand All @@ -26,11 +28,11 @@ jobs:
sudo apt install pandoc
pip install poetry
poetry install
- name: Lint by Flake8
run: poetry run flake8 docs tests xarray_accessors
- name: Format by Black
run: poetry run black --check docs tests xarray_accessors
- name: Test by pytest
- name: Test code format (Black)
run: poetry run black --check ${TESTED_DIRS}
- name: Test code style (Flake8)
run: poetry run flake8 ${TESTED_DIRS}
- name: Test package (pytest)
run : poetry run pytest -v tests
- name: Build docs
run: poetry run scripts/docs
- name: Test docs building (Sphinx)
run: poetry run docs/build

0 comments on commit a3a8637

Please sign in to comment.