-
-
Notifications
You must be signed in to change notification settings - Fork 170
51 lines (43 loc) · 1.24 KB
/
build.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
45
46
47
48
49
50
51
name: build
on:
push:
branches:
- master
- release
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install Poetry
run: |
pip install --upgrade pip
pip install --upgrade setuptools wheel
export POETRY_VERSION=1.7.1
wget --output-document=install-poetry.py https://install.python-poetry.org
python "install-poetry.py"
rm -f "install-poetry.py"
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
poetry config installer.parallel true
poetry config installer.modern-installation true
- name: Install tox
run: |
pip install --upgrade tox tox-gh-actions
- name: Test with tox
run: tox