Skip to content

Commit

Permalink
Merge pull request #41 from open205/ppr3-update
Browse files Browse the repository at this point in the history
Updates related to PPR3
  • Loading branch information
nealkruis authored Apr 28, 2021
2 parents 7c46ac4 + 3b78bc4 commit 619a93e
Show file tree
Hide file tree
Showing 15 changed files with 824 additions and 645 deletions.
45 changes: 27 additions & 18 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,38 @@ on: push
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.6", "3.7", "3.8", "3.9"]
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
submodules: true
- name: Setup python
uses: actions/setup-python@v1
submodules: recursive
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install pipenv
run: python -m pip install pipenv
- name: Install project
run: pipenv install --dev
- name: Build and test
run: pipenv run doit
- name: Upload web content
uses: actions/upload-artifact@v2
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/[email protected]
with:
name: web-content-${{ matrix.os }}
path: build/web
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv if cache exists
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: poetry-cache-v3-${{ matrix.os }}-py${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies if cache does not exist
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Build and test
run: |
source $VENV
poetry run doit
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ env/
.vscode/
.pytest_cache/
sandbox/
.doit.db.db
.doit.db*
22 changes: 0 additions & 22 deletions Pipfile

This file was deleted.

Loading

0 comments on commit 619a93e

Please sign in to comment.