To configure your CI pipline you have to ensure two things:
flakytest
to your development dependencies e.g. dev-requirements.txt
.
FLAKYTEST_SECRET_TOKEN
environment variable. This usually means adding the token to your CI environment secrets.
To set up flakytest in GitHub Actions you have to add a GitHub icon secret, and then expose it to the run command.
To add the secret, go to your repository settings, and then to the Actions secrets and variables page. Add a new repository secret with the name FLAKYTEST_SECRET_TOKEN
and the value of the secret token from your project page.
To expose the secret to the run command, you have to add it to the env
section of your job. The env
section is a dictionary of environment variables that will be available to the run command.
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.13
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requirements.txt
- name: Run tests
run: pytest
env:
FLAKYTEST_SECRET_TOKEN: ${{ secrets.FLAKYTEST_SECRET_TOKEN }}