forked from ajaust/introduction-to-github-actions-edc26
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1001 Bytes
/
Copy pathexercise4_workflow.yml
File metadata and controls
39 lines (32 loc) · 1001 Bytes
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
name: Workflow of exercise 4
run-name: Fourth workflow
permissions: {}
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
ubuntu_job:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.12, 3.13, 3.14]
os: [ubuntu-latest, windows-latest,macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup python
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
- name: Check code formatting
run: python -m black mycode.py
- name: Run tests
run: python -m pytest test_mycode.py