added version check #53
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: Run unittests | |
on: | |
push: | |
pull_request: | |
jobs: | |
python34: | |
runs-on: ubuntu-latest # Replace with desired runner | |
container: | |
image: python:3.4-alpine3.8 | |
steps: | |
- uses: actions/checkout@v3 # Download code from GitHub | |
- name: Create volume mount point | |
run: mkdir -p /app # Create a directory in the container | |
- name: Mount local project directory | |
uses: actions/upload-artifact@v3 # Upload local directory as artifact | |
with: | |
name: source-code | |
path: . # Upload current directory (your project) | |
- name: Download artifact (source code) | |
uses: actions/download-artifact@v3 # Download uploaded artifact | |
with: | |
name: source-code | |
- name: Copy source code to container directory | |
run: cp -r source-code/* /app # Copy downloaded artifact to container directory | |
- name: Python version | |
run: echo $(python3 -V) | |
- name: pwd (container directory) | |
run: echo $(pwd) # This will print the container directory (/app) | |
- name: ls project files (using volume) | |
run: echo $(ls /app) # This will list files in the mounted volume directory (/app) |