Skip to content

Commit

Permalink
set github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosdribia committed Jan 24, 2024
1 parent 5faaa77 commit 9d6d99a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 29 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: snok/install-poetry@v1
- uses: actions/setup-python@v4
with:
python-version: "3.7"
- name: Install Poetry
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
python-version: '3.10'
cache: 'poetry'
- name: Install Dependencies
run: poetry install
run: poetry install --only docs
- name: Publish Docs
run: poetry run mkdocs gh-deploy --force
17 changes: 3 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: JRubics/poetry-publish@v1.17
with:
python-version: "3.7"
- name: Install Poetry
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
- name: Build Package
run: poetry build
- name: Publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.POETRY_HTTP_BASIC_PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.POETRY_HTTP_BASIC_PYPI_PASSWORD }}
run: bash scripts/publish.sh
pypi_token: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ['3.8', '3.9', '3.10']
fail-fast: false

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: snok/install-poetry@v1
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
cache: 'poetry'
- name: Install Dependencies
run: poetry install
- name: Lint
run: bash scripts/lint.sh
- name: Test
run: bash scripts/test.sh
- name: Upload coverage
uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3

0 comments on commit 9d6d99a

Please sign in to comment.