Skip to content

Commit

Permalink
Merge pull request #56 from astropenguin/#55-release-v0.3.0
Browse files Browse the repository at this point in the history
Release v0.3.0
  • Loading branch information
astropenguin committed Oct 28, 2021
2 parents 24fc874 + dc071d9 commit a8891a5
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 37 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@ jobs:
job:
name: GitHub Pages
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
POETRY_VIRTUALENVS_CREATE: false
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt install pandoc
pip install poetry
poetry install
- name: Build docs
run: poetry run scripts/docs
run: docs/build
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: $GITHUB_TOKEN
publish_dir: ./docs/_build
publish_branch: gh-pages
force_orphan: true
16 changes: 5 additions & 11 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@ jobs:
job:
name: PyPI
runs-on: ubuntu-latest
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install poetry
- name: Publish package
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build
- uses: actions/setup-python@v2
- name: Publish package to PyPI
run: pip install poetry && poetry publish --build
32 changes: 17 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,37 @@ name: Tests
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
job:
name: Test ${{ matrix.python-version }}
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.8", "3.9", "3.10"]
env:
POETRY_VIRTUALENVS_CREATE: false
TARGET_DIRS: astro_ph docs tests
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install pandoc
pip install poetry
poetry install
poetry run playwright install chromium
- name: Lint by Flake8
run: poetry run flake8 astro_ph docs tests
- name: Format by Black
run: poetry run black --check astro_ph docs tests
- name: Test by pytest
run : poetry run pytest -v tests
- name: Build docs
run: poetry run scripts/docs
playwright install chromium
- name: Test code's formatting (Black)
run: black --check ${TARGET_DIRS}
- name: Test code's style (Flake8)
run: flake8 ${TARGET_DIRS}
- name: Test code's execution (pytest)
run: pytest -v tests
- name: Test docs' build (Sphinx)
run: docs/build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ In this case, you need to [create a custom Slack app to get an URL of incoming w
```shell
$ astro-ph slack --keywords galaxy,galaxies \
--categories astro-ph.GA,astro-ph.IM \
--lang_to ja \
--language_to ja \
--webhook_url https://hooks.slack.com/services/***/***
```

Expand Down
2 changes: 1 addition & 1 deletion astro_ph/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# flake8: noqa
# type: ignore
__author__ = "Akio Taniguchi"
__version__ = "0.2.4"
__version__ = "0.3.0"


# submodules
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "astro-ph"
version = "0.2.4"
version = "0.3.0"
description = "Translate and post arXiv articles to various apps"
authors = ["Akio Taniguchi <taniguchi@a.phys.nagoya-u.ac.jp>"]
keywords = ["arxiv", "astro-ph", "translation"]
Expand Down
7 changes: 3 additions & 4 deletions tests/test_metadata.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# third-party packages
# dependencies
import astro_ph
from typing_extensions import Final


# constants
AUTHOR: Final[str] = "Akio Taniguchi"
VERSION: Final[str] = "0.2.4"
AUTHOR = "Akio Taniguchi"
VERSION = "0.3.0"


# test functions
Expand Down

0 comments on commit a8891a5

Please sign in to comment.