Merge pull request #19 from rnnh/dependabot/pip/urllib3-1.26.18 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |