mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
ci: first stab at running CI as github actions
Props to Adam Chainz for sharing its setup.
This commit is contained in:
parent
bbe4227077
commit
b3fc18ddf0
17
.github/workflows/docs.yml
vendored
Normal file
17
.github/workflows/docs.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
name: Build documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docs:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
- name: install requirements
|
||||||
|
run: pip install --upgrade pip setuptools wheel
|
||||||
|
- name: run tests
|
||||||
|
run: TRAVIS_PYTHON_VERSION=3.6 ./scripts/travis_update_docs.sh
|
37
.github/workflows/tests.yml
vendored
Normal file
37
.github/workflows/tests.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
name: Python ${{ matrix.python-version }}
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version:
|
||||||
|
- 2.7
|
||||||
|
- 3.6
|
||||||
|
- 3.7
|
||||||
|
- 3.8
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: install requirements
|
||||||
|
run: pip install --upgrade pip setuptools wheel
|
||||||
|
- name: install local project
|
||||||
|
run: pip install .
|
||||||
|
- name: cleanup local egg info
|
||||||
|
run: rm -rf psycopg2.egg-info
|
||||||
|
- name: setup test databases
|
||||||
|
run: sudo ./scripts/travis_prepare.sh
|
||||||
|
- name: run tests
|
||||||
|
run: ./scripts/travis_test.sh
|
Loading…
Reference in New Issue
Block a user