name: Run Tests on: push jobs: build: runs-on: ubuntu-latest environment: test steps: - 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: | . 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=.