mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-09-20 07:21:22 +00:00
ci: add Python tests profile (\wo gopy)
Signed-off-by: Alexander Bezzubov <alexander.bezzubov@jetbrains.com>
This commit is contained in:
parent
328c16f948
commit
e98983b3f9
@ -1,5 +1,5 @@
|
||||
on: [push, pull_request]
|
||||
name: Test
|
||||
name: Go Tests
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
@ -12,7 +12,6 @@ jobs:
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Set git on win to use LF
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
@ -23,6 +22,7 @@ jobs:
|
||||
run: go test ./...
|
||||
env:
|
||||
ENRY_DEBUG: 1
|
||||
|
||||
test-oniguruma:
|
||||
strategy:
|
||||
matrix:
|
||||
@ -37,7 +37,7 @@ jobs:
|
||||
sudo dpkg -i "libonig5_${ONIGURUMA_VERSION}-1_amd64.deb"
|
||||
wget "http://archive.ubuntu.com/ubuntu/pool/universe/libo/libonig/libonig-dev_${ONIGURUMA_VERSION}-1_amd64.deb"
|
||||
sudo dpkg -i "libonig-dev_${ONIGURUMA_VERSION}-1_amd64.deb"
|
||||
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
27
.github/workflows/pyTest.yml
vendored
Normal file
27
.github/workflows/pyTest.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
on: [push, pull_request]
|
||||
name: Python Tests
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.6, 3.7, 3.8]
|
||||
platform: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- name: Install Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r python/requirements.txt
|
||||
if [ -f python/requirements.dev.txt ]; then pip install -r python/requirements.dev.txt; fi
|
||||
- name: Build and install package
|
||||
run: |
|
||||
pip install -e python
|
||||
- name: Test
|
||||
run: |
|
||||
pytest python/
|
Loading…
Reference in New Issue
Block a user