Skip to content

Commit

Permalink
Update CI to GitHub Actions, add linting, refresh URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Nov 7, 2021
1 parent 082457e commit 138d886
Show file tree
Hide file tree
Showing 14 changed files with 200 additions and 499 deletions.
229 changes: 0 additions & 229 deletions .appveyor/install.ps1

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: CI

on: [push, pull_request]

defaults:
run:
shell: bash

jobs:
package:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Check packages
run: |
python3.7 -m pip install wheel twine rstcheck;
python3.7 setup.py sdist bdist_wheel;
rstcheck README.rst CHANGES.rst
python3.7 -m twine check dist/*
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install dependencies
run: python -m pip install nox
- name: Lint the code
run: nox -s lint

test:
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
os: [macos-latest, windows-latest, ubuntu-latest]

runs-on: ${{ matrix.os }}
name: ${{ fromJson('{"macos-latest":"macOS","windows-latest":"Windows","ubuntu-latest":"Ubuntu"}')[matrix.os] }} ${{ matrix.python-version }} ${{ matrix.nox-session}}
steps:
- name: Checkout repository
uses: actions/checkout@v2

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

- name: Set up Python 3 to run nox
if: matrix.python-version != '3.7'
uses: actions/setup-python@v2
with:
python-version: "3"

- name: Install dependencies
run: python -m pip install nox

- name: Run tests
run: nox -s test
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

11 changes: 0 additions & 11 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
include *.md
include *.rst
include *.txt
include LICENSE
include .coveragerc
include tox.ini
include artisanci/packages/virtualbox/LICENSE
include artisanci/packages/README.md
exclude build_docs.py
exclude .mention-bot
recursive-include docs *
recursive-exclude docs/build *
recursive-include docs Makefile
recursive-include tests *.py

0 comments on commit 138d886

Please sign in to comment.