From 6063c25f099b0303d914e471764ca7df356ce8f0 Mon Sep 17 00:00:00 2001 From: KazKozDev <159002820+KazKozDev@users.noreply.github.com> Date: Sun, 10 Nov 2024 11:01:36 +0100 Subject: [PATCH] Add basic workflow and requirements --- .github/workflows/python-app.yml | 27 +++++++++++++++++++++++++++ requirements.txt | 7 +++---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..93da5c4 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,27 @@ +name: Python Application CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + + 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 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 8dd8487..4649a99 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ aiohttp>=3.8.0 -asyncio>=3.4.3 python-dotenv>=0.19.0 -logging>=0.5.1.2 -dataclasses>=0.6 -typing>=3.7.4 \ No newline at end of file +pytest>=7.0.0 +pytest-asyncio>=0.20.0 +pytest-aiohttp>=1.0.4 \ No newline at end of file