-
-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (29 loc) 路 932 Bytes
/
test-venv.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
name: Test Python Environment
on: [push, pull_request]
jobs:
test-venv:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Update package list
run: |
sudo apt-get update
- name: Install SoX
run: |
sudo apt install sox;
sudo apt-get install libsox-fmt-mp3;
- name: Installing Python 3.10 and venv
run: |
sudo apt install python3.10;
sudo apt-get install python3.10-venv;
- name: Create a virtual environment
run: |
python3.10 -m venv env;
source env/bin/activate;
- name: Install required packages
run: |
pip install --upgrade pip;
pip install -r requirements.txt;
- name: Test script by printing help text
run: python vaporiser.py --help