From 656bcd40b9e0e9fba6702db02b6f1902ed27c962 Mon Sep 17 00:00:00 2001 From: diamante0018 Date: Tue, 20 May 2025 22:05:26 +0200 Subject: [PATCH] build: test CI here --- .github/workflows/python-tests.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index e234d6a..0243728 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -6,23 +6,30 @@ jobs: build: runs-on: ubuntu-latest environment: test - strategy: - matrix: - python-version: ["3.10", "3.11", "3.12"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} + - name: Check out files + uses: actions/checkout@v4 + + - name: Install Python + run: | + apt-get update + apt-get install -y python3 python3-pip python3-venv + + - name: Set up virtual environment + run: | + python3 -m venv venv + . venv/bin/activate + python -m pip install --upgrade pip + - name: Install dependencies run: | - python -m pip install --upgrade pip + . venv/bin/activate pip install pytest pytest-cov pytest-env if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test with pytest env: VXTWITTER_WORKAROUND_TOKENS: ${{ secrets.VXTWITTER_WORKAROUND_TOKENS }} run: | + . venv/bin/activate pytest --cov-config=.coveragerc --cov=.