Skip to content

Run tests with multiple Python versions #14

Run tests with multiple Python versions

Run tests with multiple Python versions #14

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
jobs:
test-earliest:
name: Run test suite on the earliest supported Python version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout repository
with:
fetch-depth: 1
submodules: 'recursive'
- uses: actions/setup-python@v5
id: earliest
with:
python-version: '3.5'
check-latest: true
- name: Run tests on 3.5
run: echo '${{ steps.earliest.outputs.python-version }}'
run: make -C t

Check failure on line 29 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 29, Col: 9): 'run' is already defined .github/workflows/ci.yml (Line: 48, Col: 9): 'run' is already defined
test-latest:
name: Run test suite on the latest supported python version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout repository
with:
fetch-depth: 1
submodules: 'recursive'
- uses: actions/setup-python@v5
id: latest
with:
python-version: '3.x'
- name: Run tests on 3.x
run: echo '${{ steps.latest.outputs.python-version }}'
run: make -C t
code-quality:
name: Run code quality checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: 'recursive'
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: python
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2