dfdewey/.github/workflows/unit-tests.yml
renovate[bot] ee8ac04232
Some checks failed
unit-tests / build-focal (3.8) (pull_request) Has been cancelled
unit-tests / build-focal (3.9) (pull_request) Has been cancelled
unit-tests / build-jammy (3.10) (pull_request) Has been cancelled
Update actions/checkout action to v4
2024-07-15 01:01:08 +00:00

65 lines
1.6 KiB
YAML

name: unit-tests
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-focal:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- python-version: '3.8'
- python-version: '3.9'
steps:
- uses: actions/checkout@v4
- 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-jammy:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- python-version: '3.10'
steps:
- uses: actions/checkout@v4
- 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