Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
codereverser committed May 9, 2021
1 parent 40d5b3d commit ab3ca9c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install and configure poetry
uses: snok/install-poetry@v1.1.4
with:
version: 1.1.6
virtualenvs-create: false
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -U setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
poetry build
twine upload dist/*
13 changes: 8 additions & 5 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ jobs:
run: ./.github/scripts/extract_files.sh
env:
FILES_PASSPHRASE: ${{ secrets.FILES_PASSPHRASE }}
- name: Install and configure poetry
uses: snok/install-poetry@v1.1.4
with:
version: 1.1.6
virtualenvs-create: false
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-mupdf.txt ]; then pip install -r requirements-mupdf.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
run: poetry install -E mupdf
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Test with pytest
run: |
pip install .
pytest
env:
BAD_CAS_FILE: ${{ secrets.BAD_CAS_FILE }}
Expand Down

0 comments on commit ab3ca9c

Please sign in to comment.