forked from radik/pbs-python
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.07 KB
/
python-package-tests.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
name: Python package tests
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
container-name:
- almalinux:9
container:
image: ${{ matrix.container-name }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies for Python
run: |
dnf install -y dnf-plugins-core
dnf install -y gcc openssl openssl-devel bzip2-devel libffi-devel zlib-devel make wget curl-minimal
dnf install -y git
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Torque
run: |
dnf install -y epel-release
dnf install -y torque torque-client torque-devel torque-drmaa torque-mom torque-server torque-scheduler
- name: Install dependencies
run: |
pip install --upgrade pip
pip install --upgrade setuptools wheel
pip install ".[all]"
- name: Unit tests
run: |
python -m unittest discover --verbose --catch --start-directory tests/unit