Skip to content

Commit 2cfcd08

Browse files
authored
Merge pull request #21 from trustpilot/SP-147-GHA
chore: migrate to GHA
2 parents 64a54dc + 213cf98 commit 2cfcd08

3 files changed

Lines changed: 681 additions & 502 deletions

File tree

.github/workflows/pushes.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build and release
2+
3+
'on':
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
python-version: ['3.8', '3.9', '3.10', '3.11']
22+
steps:
23+
- name: Checkout the repo
24+
uses: actions/checkout@v4
25+
with:
26+
ref: ${{ github.head_ref }}
27+
28+
- name: Setup Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
cache: 'pip'
33+
34+
- name: Install poetry
35+
run: |
36+
pip install --upgrade pip
37+
pip install poetry
38+
python -V
39+
pip -V
40+
poetry -V
41+
poetry config virtualenvs.create false
42+
shell: bash
43+
44+
- name: poetry install
45+
run: poetry install --verbose
46+
shell: bash
47+
48+
- name: Lint
49+
run: poetry run black --check .
50+
shell: bash
51+
52+
- name: Test
53+
run: poetry run pytest -vvv tests
54+
shell: bash

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)