added requirements folder; and dry run a github action #1
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: Python Tests | |
on: [push] | |
jobs: | |
test: | |
name: Run Python Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.6 # Replace with your desired Python version | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt # If you have a requirements file | |
- name: Run tests | |
run: | | |
python -m unittest discover -s path/to/tests -p 'test_*.py' | |
# You might need to adjust paths and filenames in the 'run' section based on your project structure |