-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 979 Bytes
/
pypi-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test the library
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Specify gypsum cache
run: |
LOCATION=$(pwd)/.gypsum_cache
mkdir -p ${LOCATION} # TODO: move to gypsum_client
echo "GYPSUM_CACHE_DIR=${LOCATION}" >> $GITHUB_ENV
- name: Cache gypsum assets
uses: actions/cache@v4
with:
path: ${{ env.GYPSUM_CACHE_DIR }}
key: gypsum-cache
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Test with tox
run: |
pip install tox
tox