2020-11-24 06:25:31 +00:00
|
|
|
name: unit-tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
|
|
|
|
jobs:
|
2021-12-20 00:08:29 +00:00
|
|
|
build-bionic:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- python-version: '3.6'
|
|
|
|
- python-version: '3.7'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Python ${{ 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: |
|
|
|
|
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: python3 run_tests.py
|
|
|
|
|
|
|
|
build-focal:
|
|
|
|
runs-on: ubuntu-20.04
|
2020-11-24 06:25:31 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-10-14 23:24:28 +00:00
|
|
|
include:
|
|
|
|
- python-version: '3.8'
|
|
|
|
- python-version: '3.9'
|
2020-11-24 06:25:31 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
2021-10-14 23:24:28 +00:00
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
run: |
|
|
|
|
sudo apt update -q
|
|
|
|
sudo apt install -y software-properties-common
|
2020-11-24 06:25:31 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2021-10-14 23:24:28 +00:00
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
2020-11-24 06:25:31 +00:00
|
|
|
run: |
|
2021-10-14 23:05:54 +00:00
|
|
|
sudo add-apt-repository -y ppa:gift/stable
|
|
|
|
sudo apt update -q
|
2021-10-14 23:24:28 +00:00
|
|
|
sudo apt install -y python${{ matrix.python-version }} python3-dfvfs python3-pip python3-setuptools
|
|
|
|
python3 -m pip install .[dev]
|
2020-11-24 06:25:31 +00:00
|
|
|
|
|
|
|
- name: Run unit tests
|
2021-10-14 23:24:28 +00:00
|
|
|
run: python3 run_tests.py
|