Skip to content

Commit

Permalink
Merge pull request pmaupin#1 from sarnold/pr-updates
Browse files Browse the repository at this point in the history
Pr updates
  • Loading branch information
sarnold authored Jan 24, 2021
2 parents 6c89216 + 8807d05 commit 0bd6a4c
Show file tree
Hide file tree
Showing 16 changed files with 850 additions and 54 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: ci

on:
workflow_dispatch:
pull_request:
push:
branches:
- master

jobs:
python_wheels:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
PIP_DOWNLOAD_CACHE: ${{ github.workspace }}/../.pip_download_cache
strategy:
fail-fast: true
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Add requirements
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Check for lint
run: |
tox -e lint
- name: Install and test
run: |
tox -e py
- name: Build dist pkgs
run: |
tox -e deploy
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: wheels
path: ./dist/*.whl

check_artifacts:
name: Check artifacts are correct
needs: [python_wheels]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Add requirements
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- uses: actions/download-artifact@v2
with:
name: wheels

- name: Test wheels
run: |
tox -e check
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ tests/*.pdf
examples/pdfrw
examples/rl*/pdfrw
tests/pdfrw
tests/static_pdfs
# this is now a submodle
# tests/static_pdfs
tests/ramdisk
tests/saved_results
tests/tmp_results
Expand Down Expand Up @@ -62,6 +63,11 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
tests/result.pickle
tests/expected.pickle

# Sphinx documentation
docs/_build/

# VSCode
.vscode/settings.json
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tests/static_pdfs"]
path = tests/static_pdfs
url = https://github.com/pmaupin/static_pdfs
Loading

0 comments on commit 0bd6a4c

Please sign in to comment.