Skip to content

Remove CircleCI and add GitHub CI workflow #4

Remove CircleCI and add GitHub CI workflow

Remove CircleCI and add GitHub CI workflow #4

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI Tests
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
tests:
name: ${{ matrix.prefix }} ${{ matrix.os }}, ${{ matrix.tox_env }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.allow_failure }}
strategy:
matrix:
include:
- os: ubuntu-latest
python: '3.9'
tox_env: 'pypython3.10-test-alldeps'
allow_failure: false
prefix: ''
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with Tox
run: |
tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}