Run Tests #642
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: Run Tests | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
paths-ignore: | |
- "pages/**" | |
schedule: | |
- cron: "43 */6 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, '[no-test]') }} | |
steps: | |
- name: Checkout repo content | |
uses: actions/[email protected] # checkout the repository content | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' # install the python version needed | |
- name: Install required packages | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
cd tests | |
python3 main.py ${{ secrets.BOT_EMAIL }} ${{ secrets.BOT_PASSWORD }} |