Skip to content

Commit

Permalink
Merge pull request #35 from quantmind/ls-312
Browse files Browse the repository at this point in the history
Add 3.12 to github
  • Loading branch information
lsbardel authored Sep 29, 2023
2 parents ef86753 + df8d974 commit 6c54f14
Show file tree
Hide file tree
Showing 6 changed files with 783 additions and 744 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@ jobs:
PYTHON_ENV: ci
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12-dev"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pip install -U pip poetry
- name: Install dependencies
run: make install-dev
run: poetry install
- name: run lint
run: make lint
- name: run tests
Expand All @@ -38,12 +39,25 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/coverage.xml

book:
runs-on: ubuntu-latest
env:
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
needs:
- build
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: make install-dev
- name: build book
if: ${{ matrix.python-version == '3.11' }}
run: make book
- name: publish book
if: ${{ matrix.python-version == '3.11' }}
run: make publish-book
- name: publish
if: ${{ github.ref == 'refs/heads/main' && matrix.python-version == '3.10' && github.event.head_commit.message == 'release' }}
if: ${{ github.ref == 'refs/heads/main' && github.event.head_commit.message == 'release' }}
run: make publish
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ htmlcov
dist
venv
MANIFEST
release-notes.md
.python-version
.settings
.coverage
.env
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ book: ## Build static jupyter {book}

publish-book: ## publish the book to github pages
poetry run ghp-import -n -p -f docs/_build/html

outdated: ## Show outdated packages
poetry show -o -a
Loading

0 comments on commit 6c54f14

Please sign in to comment.