BetterTwitFix/.github/workflows/python-tests.yml
diamante0018 fcb0abfa61
Some checks failed
Run Tests / build (push) Failing after 29s
build: test CI here
2025-05-20 22:01:42 +02:00

29 lines
704 B
YAML

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
- name: Install dependencies
run: |
python -m pip install --upgrade pip
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: |
pytest --cov-config=.coveragerc --cov=.