Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CI for unit tests #1

Merged
merged 11 commits into from
Sep 28, 2023
Merged
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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


Loading