diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2438ecc --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,49 @@ +name: Unit tests for Basic Class + +on: + push: + branches: + - develop + - main + + pull_request: + branches: + - develop + - main + +defaults: + run: + shell: bash + working-directory: . + +jobs: + + test: + name: 'Run unit tests' + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python ${{ env.DEFAULT_PYTHON }} + id: python + uses: actions/setup-python@v4 + with: + python-version: ${{ env.DEFAULT_PYTHON }} + + - name: Upgrade pip + run: python -m pip install --upgrade pip setuptools wheel + + - name: Upgrade pyOpenSSl + run: pip install pyOpenSSL --upgrade + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: List directory contents + run: ls -la + + - name: Run tests + run: python -m pytest ./tests + +