1 parent 6d62f6b commit efca2f7Copy full SHA for efca2f7
1 file changed
.github/workflows/exercise4_workflow.yml
@@ -0,0 +1,37 @@
1
+name: Workflow of exercise 4
2
+run-name: Fourth workflow
3
+
4
+on:
5
+ push:
6
+ branches: [ main ]
7
+ pull_request:
8
9
+ workflow_dispatch:
10
11
+jobs:
12
+ ubuntu_job:
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ python-version: [3.12, 3.13]
18
+ os: [ubuntu-latest, windows-latest,macos-latest]
19
+ steps:
20
+ - name: Checkout repository
21
+ uses: actions/checkout@v6
22
23
+ - name: Setup python
24
+ uses: actions/setup-python@v6
25
+ with:
26
+ python-version: '3.14'
27
28
+ - name: Install dependencies
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ python -m pip install -r requirements-dev.txt
32
33
+ - name: Check code formatting
34
+ run: python -m black mycode.py
35
36
+ - name: Run tests
37
+ run: python -m pytest test_mycode.py
0 commit comments