Skip to content

Pytest on remote only #1

Pytest on remote only

Pytest on remote only #1

name: "Test remote API"
description: "Test remote API at https://api.harmonydata.ac.uk. Github actions does not host a running API so we cannot test locally."

Check failure on line 2 in .github/workflows/test_remote_no_dependencies.yml

View workflow run for this annotation

GitHub Actions / Test remote API

Invalid workflow file

The workflow is not valid. .github/workflows/test_remote_no_dependencies.yml (Line: 2, Col: 1): Unexpected value 'description'
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 pytest requests
- name: Delete unwanted tests (1)
run: tests/*local*
- name: Delete unwanted tests (2)
run: rm tests/*selenium*
- name: Test with pytest
run: |
pip install pytest
pytest tests