Merge pull request #21 from google/dfvfs

Install dfVFS from GIFT for unit tests
This commit is contained in:
Jason 2021-10-15 10:40:56 +11:00 committed by GitHub
commit 2be9dceb27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,25 +5,32 @@ on:
types: [opened, synchronize, reopened]
jobs:
pip:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
include:
- python-version: '3.8'
- python-version: '3.9'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt update -q
sudo apt install -y software-properties-common
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
pip install pipenv
pipenv install -e .[dev]
pipenv install -r dfvfs_requirements.txt
sudo add-apt-repository -y ppa:gift/stable
sudo apt update -q
sudo apt install -y python${{ matrix.python-version }} python3-dfvfs python3-pip python3-setuptools
python3 -m pip install .[dev]
- name: Run unit tests
run: pipenv run python run_tests.py
run: python3 run_tests.py