forked from olofk/fusesoc
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.05 KB
/
Copy pathci.yml
File metadata and controls
43 lines (39 loc) · 1.05 KB
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
name: CI
on:
# Run CI on all pushes.
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
name: Build and Test (Python ${{ matrix.python-version }} on ${{ matrix.os }})
runs-on: ubuntu-20.04
strategy:
matrix:
os:
- ubuntu-20.04
- macos-latest
- windows-latest
python-version:
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install Tox and any other packages
run: pip install tox tox-gh-actions
- name: Build package and run tests with tox
# XXX: Remove `-e py3-ci` and rely on the settings in tox.ini as soon as
# https://github.com/ymyzk/tox-gh-actions/issues/44 is resolved.
run: tox -e py3-ci