From 30682945210504b291153b413844e0f7ad38fb86 Mon Sep 17 00:00:00 2001 From: AG3NTZ3R0 Date: Thu, 15 Feb 2024 19:51:41 -0500 Subject: [PATCH] Creates a unittest workflow --- .github/workflows/unittest.yml | 23 +++++++++++++++++++++++ .gitignore | 5 ++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/unittest.yml diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml new file mode 100644 index 0000000..74b5301 --- /dev/null +++ b/.github/workflows/unittest.yml @@ -0,0 +1,23 @@ +name: Unittest + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.12"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run the tests with unittest + run: | + python -m unittest discover \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3ffaa01..4765856 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ # JetBrains -.idea \ No newline at end of file +.idea + +# PyCache +__pycache__ \ No newline at end of file