Scx1332/wip (#653) #1429
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
integration-test: | |
name: Run integration tests | |
runs-on: [goth2] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure python | |
continue-on-error: true | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install gcc | |
run: sudo apt-get install -y gcc g++ make | |
- name: Install Poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - --version 1.6.1 | |
- name: Install dependencies | |
run: poetry install | |
# Only relevant for self-hosted runners | |
- name: Cleanup Docker | |
if: always() | |
run: | | |
c=$(docker ps -q) && [[ $c ]] && docker kill $c | |
docker system prune -af | |
- name: Log in to GitHub Docker repository | |
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{github.actor}} --password-stdin | |
- name: Run integration tests | |
env: | |
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: poetry run poe tests_integration | |
- name: Upload test logs | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: goth-logs | |
path: /tmp/goth-tests | |
# Only relevant for self-hosted runners | |
- name: Remove test logs | |
if: always() | |
run: rm -rf /tmp/goth-tests | |
# Only relevant for self-hosted runners | |
- name: Remove poetry virtual env | |
if: always() | |
run: poetry env remove --all | |
# Only relevant for self-hosted runners | |
- name: Cleanup Docker | |
if: always() | |
run: | | |
c=$(docker ps -q) && [[ $c ]] && docker kill $c | |
docker system prune -af |