-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Bohdan Vanieiev <[email protected]>
- Loading branch information
Showing
9 changed files
with
107 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
# see /dev.Dockerfile | ||
container: warchantua/py-toml-dev:v1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: get toml-test | ||
run: | | ||
git clone https://github.com/BurntSushi/toml-test | ||
# cd toml-test/cmd/toml-test | ||
# go build | ||
- name: Run python tests | ||
run: | | ||
pip -q install "tox>=4" | ||
tox run-parallel --parallel-no-spinner | ||
# TODO(warchant): this cmd is old, need to update it | ||
# - name: Run go tests | ||
# run: | | ||
# pip -q install setuptools | ||
# python setup.py install | ||
# ./toml-test/cmd/toml-test/toml-test -i ./tests -g ./tests/gotests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,3 +116,6 @@ tramp | |
|
||
# vscode | ||
.vscode | ||
|
||
|
||
toml-test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
|
||
FROM ubuntu:22.04 | ||
|
||
ENV PYENV_ROOT="/opt/.pyenv" \ | ||
PATH="/opt/pipx/bin:/opt/.pyenv/shims:/opt/.pyenv/bin:$PATH" \ | ||
PIPX_HOME="/opt/pipx" \ | ||
PIPX_BIN_DIR="/opt/pipx/bin" | ||
|
||
RUN mkdir $PIPX_HOME \ | ||
&& apt-get update \ | ||
&& apt-get install -y ccache build-essential git curl libssl-dev libz-dev libbz2-dev libncurses-dev libffi-dev libsqlite3-dev liblzma-dev libreadline-dev \ | ||
&& curl https://pyenv.run | bash \ | ||
&& git clone https://github.com/pyenv/pyenv-ccache.git $(pyenv root)/plugins/pyenv-ccache \ | ||
# NOTE: 3.3 installation fails with a segmentation fault :( | ||
# NOTE: 3.4 installation fails: cannot find libssl (while it is installed) | ||
&& pyenv install 2.7 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 \ | ||
# enable all versions, 3.12 is default | ||
&& pyenv global 3.12 2.7 3.5 3.6 3.7 3.8 3.9 3.10 3.11 \ | ||
&& pip install pipx \ | ||
&& pipx install tox>=4 \ | ||
&& pipx install poetry \ | ||
&& pipx install pre-commit \ | ||
&& ccache -C \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters