-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 871 Bytes
/
pytest.yml
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
# This is a basic workflow that is manually triggered
name: PyTest
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
push:
branches:
- 'main'
release:
types: [published]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8.12
- name: Checkout PyTorch
uses: actions/checkout@master
- name: Create a virtual environment
run: python3 -m venv env
- name: Activate the enviroment
run: source env/bin/activate
- name: Install requirements
run: pip3 install -r requirements.txt
- name: pytest
run: python -m pytest