diff --git a/.github/workflows/pylama.yml b/.github/workflows/pylama.yml new file mode 100644 index 0000000..42826dd --- /dev/null +++ b/.github/workflows/pylama.yml @@ -0,0 +1,30 @@ +name: Pylama + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + pylama: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylama + + - name: Run Pylama + run: pylama --options .pylama.ini . diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..8d1d063 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: Unit Tests + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.10 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run unit tests + run: | + python -m unittest discover -s tests -p 'test_*.py'