Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pokegamer5547 authored Aug 22, 2024
1 parent 4d515b2 commit 1d7b6bf
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,56 @@
name: CI

python: '3.8'
- os: macos-latest
python: '3.12'
- os: windows-latest
python: '3.8'
- os: windows-latest
python: '3.12'
on:
push:
branches:
- master
- "!dependabot/**"
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
test:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
python:
- '3.12'
os:
- ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v4
with:
persist-credentials: false


- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pip


- name: Print versions
run: |
python --version
pip --version
- name: Install Python dependencies
run: pip install -r requirements.txt


- name: Run lint
run: flake8


- name: Run tests
run: python updateHostsFile.py --auto

- name: Commit changes
- name: Commit changes
run: |
git add .
git commit -m "Update hosts file" || echo "No changes to commit"
Expand Down

0 comments on commit 1d7b6bf

Please sign in to comment.