|
14 | 14 | jobs: |
15 | 15 | goth-tests: |
16 | 16 | name: Run integration tests |
17 | | - runs-on: [goth, ubuntu-18.04] |
| 17 | + runs-on: ubuntu-latest |
18 | 18 | steps: |
19 | | - - name: install docker-compose |
20 | | - run: | |
21 | | - sudo curl -L "https://github.com/docker/compose/releases/download/1.28.4/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose |
22 | | - sudo chmod a+x /usr/local/bin/docker-compose |
23 | | -
|
24 | | - - name: install ffi and gcc |
25 | | - run: sudo apt-get install -y libffi-dev build-essential |
26 | | - |
27 | 19 | - name: Checkout |
28 | | - uses: actions/checkout@v3 |
| 20 | + uses: actions/checkout@v4 |
29 | 21 |
|
30 | 22 | - name: Configure python |
31 | | - uses: actions/setup-python@v4 |
| 23 | + uses: actions/setup-python@v5 |
32 | 24 | with: |
33 | | - python-version: '3.9' |
| 25 | + python-version: '3.10' |
34 | 26 |
|
35 | | - - name: Install and configure Poetry |
36 | | - run: python -m pip install -U pip setuptools poetry==1.3.2 |
| 27 | + - name: Install Poetry |
| 28 | + run: curl -sSL https://install.python-poetry.org | python3 - --version 1.8.2 |
37 | 29 |
|
38 | 30 | - name: Install dependencies |
39 | 31 | run: | |
40 | | - poetry env use python3.9 |
41 | 32 | poetry install |
42 | 33 |
|
43 | | - - name: Disconnect Docker containers from default network |
44 | | - continue-on-error: true |
45 | | - # related to this issue: https://github.com/moby/moby/issues/23302 |
46 | | - run: | |
47 | | - docker network inspect docker_default |
48 | | - sudo apt-get install -y jq |
49 | | - docker network inspect docker_default | jq ".[0].Containers | map(.Name)[]" | tee /dev/stderr | xargs --max-args 1 -- docker network disconnect -f docker_default |
50 | | -
|
51 | | - - name: Remove Docker containers |
52 | | - continue-on-error: true |
53 | | - run: docker rm -f $(docker ps -a -q) |
54 | | - |
55 | | - - name: Restart Docker daemon |
56 | | - # related to this issue: https://github.com/moby/moby/issues/23302 |
57 | | - run: sudo systemctl restart docker |
58 | | - |
59 | | - - name: Log in to GitHub Docker repository |
60 | | - run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${{github.actor}} --password-stdin |
61 | | - |
62 | 34 | - name: Initialize the test suite |
63 | 35 | run: poetry run poe tests_integration_init |
64 | 36 |
|
65 | 37 | - name: Run test suite |
66 | 38 | env: |
67 | | - GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 39 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
68 | 40 | run: poetry run poe tests_integration |
69 | 41 |
|
70 | 42 | - name: Upload test logs |
71 | | - uses: actions/upload-artifact@v2 |
| 43 | + uses: actions/upload-artifact@v4 |
72 | 44 | if: always() |
73 | 45 | with: |
74 | 46 | name: goth-logs |
75 | 47 | path: /tmp/goth-tests |
76 | | - |
77 | | - # Only relevant for self-hosted runners |
78 | | - - name: Remove test logs |
79 | | - if: always() |
80 | | - run: rm -rf /tmp/goth-tests |
81 | | - |
82 | | - # Only relevant for self-hosted runners |
83 | | - - name: Remove poetry virtual env |
84 | | - if: always() |
85 | | - # Python version below should agree with the version set up by this job. |
86 | | - # In future we'll be able to use the `--all` flag here to remove envs for |
87 | | - # all Python versions (https://github.com/python-poetry/poetry/issues/3208). |
88 | | - run: poetry env remove python3.9 |
0 commit comments