forked from gpchelkin/scdlbot
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.2 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
name: build
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox and poetry
run: |
# pipes do not work in GitHub Actions?
# pip freeze | xargs pip uninstall -y
pip install --upgrade pip setuptools wheel tox tox-gh-actions
export POETRY_VERSION=1.1.13
wget --output-document=install-poetry.py https://install.python-poetry.org
# wget "https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py"
python "install-poetry.py"
- name: Test with tox
run: |
export PATH="$HOME/.local/bin:$PATH"
poetry config installer.parallel false
poetry config experimental.new-installer false
# poetry config virtualenvs.in-project true
cat "$HOME/.config/pypoetry/config.toml"
export PATH="$(pwd)/.venv/bin:$PATH"
tox