Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Dec 14, 2023
1 parent cd3e1e9 commit 6600301
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: tests

on:
push:
branches: [main]
pull_request:
schedule:
- cron: "14 3 * * 1" # at 03:14 on Monday.

jobs:
pytest:
runs-on: ${{ matrix.os }}
# services:
# selenium:
# image: selenium/standalone-chrome
strategy:
fail-fast: false
matrix:
python-version:
- "3.11"
- "3.10"
- 3.9
os:
- ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
- name: Install Poetry
run: |
pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install package
run: |
poetry install --no-interaction
- name: Pytest
# env:
# DISPLAY: ":99"
run: |
poetry run coverage run -m pytest -vv
poetry run coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 6600301

Please sign in to comment.