-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (31 loc) · 865 Bytes
/
pypi_test.yaml
File metadata and controls
32 lines (31 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-License-Identifier: MPL-2.0
# SPDX-FileCopyrightText: 2024 igo95862
---
name: Test PyPI package
on:
workflow_dispatch:
inputs:
pypi_version:
description: "Version specifier to install from PyPI"
jobs:
run:
name: Test PyPI package
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install python3 python3-pip
- name: Create venv and install package
run: |
python3 -m venv --system-site-packages venv
venv/bin/pip3 install "lxns ${LXNS_VERSION}"
env:
LXNS_VERSION: ${{ inputs.pypi_version }}
- name: List package
run: |
venv/bin/pip3 list | grep lxns
- name: Run unit tests
run: |
venv/bin/python3 -m unittest --verbose