Finish CI Pipeline for the main branch as well #16
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: Build and Test | |
on: | |
pull_request: | |
types: [opened] | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
build-image: | |
uses: ./.github/workflows/build.yaml | |
test: | |
needs: build-image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Set Up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Download docker image | |
uses: actions/download-artifact@v2 | |
with: | |
name: rosenpass | |
path: . | |
- name: Load docker image | |
run: docker load -i image.tar | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r ./tests/requirements.txt | |
- name: Run Tests | |
run: pytest -s | |
working-directory: ./tests |