Debian Codegraph @

.github/workflows/test-clients.yaml

raw
1 name: Testing clients
2 on:
3 - push
4 - pull_request
5 jobs:
6 build:
7 name: Build beanstalkd
8 runs-on: ubuntu-latest
9 steps:
10 - uses: actions/checkout@v3
11 - run: make
12 - uses: actions/upload-artifact@v3
13 with:
14 name: beanstalkd
15 path: beanstalkd
16 pheanstalk:
17 name: Test Pheanstalk PHP
18 runs-on: ubuntu-latest
19 continue-on-error: true
20 needs:
21 - build
22 steps:
23 - name: Set up PHP
24 uses: shivammathur/setup-php@v2
25 with:
26 php-version: '8.1'
27 tools: phpunit
28 - uses: actions/download-artifact@v3
29 with:
30 name: beanstalkd
31 - name: Start beanstalkd
32 run: chmod +x ./beanstalkd && ./beanstalkd &
33 - uses: actions/checkout@v3
34 with:
35 repository: pheanstalk/pheanstalk
36 ref: v5
37 - name: Install dependencies including dev-dependencies
38 run: composer install
39 - name: Run tests
40 run: phpunit
41 env:
42 SERVER_HOST: localhost
43 greenstalk:
44 # Disable this test suite until https://github.com/justinmayhew/greenstalk/issues/9 is fixed
45 if: ${{ false }}
46 name: Test Greenstalk Python
47 runs-on: ubuntu-latest
48 continue-on-error: true
49 strategy:
50 matrix:
51 python-version: [ 3.9 ]
52 needs:
53 - build
54 steps:
55 - name: Set up Python ${{ matrix.python-version }}
56 uses: actions/setup-python@v4
57 with:
58 python-version: ${{ matrix.python-version }}
59 - uses: actions/checkout@v3
60 with:
61 repository: justinmayhew/greenstalk
62 - uses: actions/download-artifact@v3
63 id: download
64 with:
65 name: beanstalkd
66 - name: Make beanstalkd executable
67 run: chmod +x ${{steps.download.outputs.download-path}}/beanstalkd
68 - name: Run beanstalkd -v
69 run: ${{steps.download.outputs.download-path}}/beanstalkd -v
70
71 - name: Install dependencies
72 run: |
73 pip install pytest
74 pip install .
75 - name: Run tests
76 env:
77 BEANSTALKD_PATH: ${{steps.download.outputs.download-path}}/beanstalkd
78 run: make test
79 pystalk:
80 name: Test Pystalk Python
81 runs-on: ubuntu-latest
82 continue-on-error: true
83 strategy:
84 matrix:
85 python-version: [ "3.10" ]
86 needs:
87 - build
88 steps:
89 - name: Set up Python ${{ matrix.python-version }}
90 uses: actions/setup-python@v4
91 with:
92 python-version: ${{ matrix.python-version }}
93 - uses: actions/checkout@v3
94 with:
95 repository: EasyPost/pystalk
96 - uses: actions/download-artifact@v3
97 id: download
98 with:
99 name: beanstalkd
100 - name: Make beanstalkd executable
101 run: chmod +x ${{steps.download.outputs.download-path}}/beanstalkd
102 - name: Run beanstalkd -v
103 run: ${{steps.download.outputs.download-path}}/beanstalkd -v
104 - name: Install dependencies
105 run: python -m pip install -r requirements-tests.txt -e .
106 - name: Run tests
107 env:
108 BEANSTALKD_PATH: ${{steps.download.outputs.download-path}}/beanstalkd
109 run: pytest tests/