-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (39 loc) · 2.23 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test1
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
- name: Run tests
run: |
python ./tests/test1.py
echo "Test1 is done"
# Info:
# name: Test1: This is the name of your workflow. It's displayed on GitHub when the actions are running.
# on: [push]: This specifies the event that triggers the workflow. In this case, the workflow runs whenever a push is made to the repository. You can also include on events such as pull requests with on: [push, pull_request].
# jobs: This section contains all the jobs that the workflow will run. Jobs run in parallel by default. I'm only including one job in this workflow.
# test: This is the identifier for the job. You can name it anything you like.
# runs-on: ubuntu-latest: This specifies the type of runner that the job will run on. In this case, it's the latest version of Ubuntu. You can use Windows or macOS runners as well.
# steps:: This section contains all the steps that the job will run. Steps run in the order that they appear in the file.
# - uses: actions/checkout@v4: This step checks out your repository so the workflow can access its contents. V4 is the latest
# - name: Set up Python: Select python version
# uses: actions/setup-python@v3: This step sets up Python on the runner. The @v3 is the version of the setup-python action to use.
# with: python-version: '3.x': This specifies the version of Python to set up.
# Add when you have requirements.txt file in the right place.
#- name: Install dependencies: This is another descriptive name for the step.
#run: | python -m pip install --upgrade pip pip install -r requirements.txt: This step upgrades pip and installs the Python dependencies specified in the requirements.txt file.
#- name: Run tests: This is a descriptive name for the step.
#run: | python -m test.py: This step runs the test.py script.