Skip to content

Commit

Permalink
Modernize: Switch CI to GitHub (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougthor42 authored Nov 6, 2023
1 parent d85bf44 commit baac6bc
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 255 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
name: CI

on: # yamllint disable-line rule:truthy
push:
branches:
- "*"
pull_request:
branches:
- "*"

jobs:
tests:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
allowed-to-fail: [false]
include:
- python-version: "3.12"
allowed-to-fail: true
name: "Build and Test: Python ${{ matrix.python-version }}"
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"

- name: Install dependencies
continue-on-error: ${{ matrix.allowed-to-fail }}
run: |
pip install -e .[dev]
- name: Run tests
continue-on-error: ${{ matrix.allowed-to-fail }}
run: |
pytest
lint:
# TODO: DRY this with tests job
name: "Lint"
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Set up Python 3.8"
uses: actions/setup-python@v4
with:
python-version: "3.8"

- name: Install dependencies
run: |
pip install pre-commit
- name: Run lint
run: |
pre-commit run --all-files
# A summary of all jobs and their result.
# This is the only job that's required to pass (as set by branch protection
# rules in repo settings) so that we don't have to update those rules when
# a new job is added.
check-all-jobs:
if: always()
needs:
- tests
# - lint
runs-on: ubuntu-latest
steps:
- name: Check status of all jobs.
uses: re-actors/[email protected]
with:
jobs: ${{ toJSON(needs) }}
149 changes: 0 additions & 149 deletions .gitlab-ci.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This document highlights high-level changes made to this program.
## Unreleased
+ Modernization: Switch from `setup.py` to `pyproject.toml`; drop support for Python
3.7 and below; move to `src` dir.
+ Migrated CI from Travis + GitLab + Appveyor CIs to Github.


## 1.1.2 / 2019-10-14
Expand Down
42 changes: 0 additions & 42 deletions appveyor.yml

This file was deleted.

0 comments on commit baac6bc

Please sign in to comment.