Automated Github action for Unittests - JeremyBrent #9
Workflow file for this run
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: Unittests | |
run-name: Automated Github action for Unittests - ${{ github.actor }} | |
on: | |
pull_request | |
jobs: | |
unittests: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "🐧 This job is now running on a ${{ runner.os }} server in ${{ runner.workspace}}!" | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: '.python-version' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
python -m unittest discover -s tests |