diff options
| author | J08nY | 2025-02-27 13:02:52 +0100 |
|---|---|---|
| committer | J08nY | 2025-02-27 13:02:52 +0100 |
| commit | ee26043a0cc2b03300a4e40a01c7b447a4524418 (patch) | |
| tree | 67e89637184d69f2b78339a173141f0dd5f898d2 /.github/workflows | |
| parent | 27abe1d969703a87aace43334969939be1b8c9f8 (diff) | |
| download | sec-certs-ee26043a0cc2b03300a4e40a01c7b447a4524418.tar.gz sec-certs-ee26043a0cc2b03300a4e40a01c7b447a4524418.tar.zst sec-certs-ee26043a0cc2b03300a4e40a01c7b447a4524418.zip | |
Move flaky remote tests into "scheduled" workflow.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/cron.yml | 39 | ||||
| -rw-r--r-- | .github/workflows/tests.yml | 2 |
2 files changed, 40 insertions, 1 deletions
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml new file mode 100644 index 00000000..426738a2 --- /dev/null +++ b/.github/workflows/cron.yml @@ -0,0 +1,39 @@ +name: Scheduled tests +on: + schedule: + - cron: "0 0 * * 3" # Run every Wednesday at midnight + workflow_dispatch: +env: + DEBIAN_FRONTEND: noninteractive + +jobs: + test: + runs-on: ubuntu-22.04 + env: + SECCERTS_NVD_API_KEY: ${{ secrets.NVD_API_KEY }} + steps: + - name: apt-get update + run: sudo apt-get update + - name: Install Poppler + run: sudo apt-get install -y build-essential libpoppler-cpp-dev pkg-config python3-dev + - uses: actions/checkout@v4 + - name: Setup python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + cache: "pip" + cache-dependency-path: | + requirements/test_requirements.txt + - name: Install python dependencies + run: | + pip install -r requirements/test_requirements.txt + - name: Install sec-certs + run: | + pip install -e . + python -m spacy download en_core_web_sm + - name: Run tests + run: pytest --cov=sec_certs -m "remote" tests + - name: Code coverage upload + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5b3353fa..69f55e40 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,7 +31,7 @@ jobs: pip install -e . python -m spacy download en_core_web_sm - name: Run tests - run: pytest --cov=sec_certs tests + run: pytest --cov=sec_certs -m "not remote" tests - name: Code coverage upload uses: codecov/codecov-action@v4 with: |
