Skip to content

fix chromium meta_info bug #132

fix chromium meta_info bug

fix chromium meta_info bug #132

Workflow file for this run

name: build-deploy
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
build:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [macos-latest, windows-latest, ubuntu-latest]
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure Poetry
uses: snok/install-poetry@v1.3
with:
virtualenvs-create: true
virtualenvs-in-project: true
# - name: Load cached venv
# id: cached-poetry-dependencies
# uses: actions/cache@v2
# with:
# path: .venv
# key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Run pytest
run: |
poetry run pytest -v
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.merged == 'true')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install and configure Poetry
uses: snok/install-poetry@v1.3
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Build and Publish to PYPI
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry install
echo `poetry version` | sed 's/bookmarks-converter /BUILD_VERSION=/' >> $GITHUB_ENV
poetry config pypi-token.pypi "$PYPI_TOKEN"
poetry publish --build
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.BUILD_VERSION }}
release_name: ${{ env.BUILD_VERSION }}