Skip to content

Commit 2ca08e5

Browse files
committed
CI: Switch to GitHub actions.
1 parent 752fb2a commit 2ca08e5

File tree

3 files changed

+40
-60
lines changed

3 files changed

+40
-60
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
python:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
python-version:
20+
- "2.7"
21+
- "3.6"
22+
- "3.9"
23+
- "3.10"
24+
- "3.11"
25+
- "3.12"
26+
- "3.13"
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
36+
- name: Install dependencies
37+
run: ./scripts/ci-install.sh
38+
39+
- name: Run tests
40+
run: python setup.py test

.travis.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

scripts/ci-install.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
#!/bin/bash
22
set -e
33

4-
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
5-
if [[ $PYVER == '2' ]]; then
6-
formula="python${PYVER}"
7-
else
8-
formula="python"
9-
fi
10-
# Update Python if already installed, otherwise install.
11-
echo "Installing / updating ${formula} ..."
12-
if [[ $PYVER == '3' ]]; then
13-
brew list "${formula}" &>/dev/null && brew upgrade "${formula}"
14-
fi
15-
brew list "${formula}" &>/dev/null || brew install "${formula}"
16-
echo -n "Using: "
17-
"python$PYVER" --version
18-
fi
19-
204
echo "Downloading ux.stackexchange.com.7z ..."
215
mkdir -p $HOME/.downloads
226
( cd $HOME/.downloads && wget --no-check-certificate --timestamping https://archive.org/download/stackexchange/ux.stackexchange.com.7z )

0 commit comments

Comments
 (0)