Skip to content

Commit

Permalink
Create workflow to run tests automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
Mews authored Jun 8, 2024
1 parent 47b5a14 commit e19b5c5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will setup python 3.10, install the dependencies in requirements.txt and run the tests in tests/test.py

name: Run tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
python tests/test.py

0 comments on commit e19b5c5

Please sign in to comment.