Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.

Commit b97f66d

Browse files
committed
Update tests to be run by GH Actions.
1 parent dcbc1af commit b97f66d

3 files changed

Lines changed: 43 additions & 23 deletions

File tree

.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: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: build (Python ${{ matrix.python-version }})
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: ['3.8', '3.9', '3.10']
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Get pip cache dir
23+
id: pip-cache
24+
run: |
25+
echo "::set-output name=dir::$(pip cache dir)"
26+
- name: Cache
27+
uses: actions/cache@v2
28+
with:
29+
path: ${{ steps.pip-cache.outputs.dir }}
30+
key:
31+
${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}
32+
restore-keys: |
33+
${{ matrix.python-version }}-v1-
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
python -m pip install --upgrade tox tox-gh-actions
38+
- name: Tox tests
39+
run: |
40+
tox -v

.travis.yml

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

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
[![Travis Build Status](https://travis-ci.org/alma/alma-python-client.svg?branch=main)](https://travis-ci.org/alma/alma-python-client) [![PyPI](https://img.shields.io/pypi/v/alma-client.svg)](https://pypi.python.org/pypi/alma-client)
44

5-
Python API Client for the Alma API
5+
Python API Client for the Alma API.
6+
7+
Support Python >= 3.8
68

79
## Install
810

0 commit comments

Comments
 (0)