Skip to content

Pytest Github actions #83

Pytest Github actions

Pytest Github actions #83

Workflow file for this run

name: Test Pypi package
on:
push:
branches:
- main
paths-ignore:
- README.md
pull_request:
branches:
- main
paths-ignore:
- README.md
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.10.11]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Delete unwanted tests
run: rm tests/*selenium*
- name: Test with pytest
run: |
pip install pytest
pytest tests