Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Drop Python 3.6 jobs #192

Merged
merged 3 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,28 @@ jobs:

strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools

- name: Install Poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
curl -sSL https://install.python-poetry.org | python3 -

- name: Add Poetry to PATH
run: |
echo "PATH=$PATH:$HOME/.poetry/bin" >> $GITHUB_ENV
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV

- name: Install dependencies
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:

strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -24,11 +24,11 @@ jobs:

- name: Install Poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
curl -sSL https://install.python-poetry.org | python3 -

- name: Add Poetry to PATH
run: |
echo "PATH=$PATH:$HOME/.poetry/bin" >> $GITHUB_ENV
echo "PATH=$PATH:~/.local/bin" >> $GITHUB_ENV

- name: Install dependencies
run: |
Expand Down
36 changes: 24 additions & 12 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,63 @@
name: "FileCheck.py on Windows"

on: [pull_request]
# Disabling building on Windows for now.
on:
push:
branches: [ "nonsense-branch" ]
# pull_request:
# branches: [ "**" ]

jobs:
build:
runs-on: windows-latest

strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: "Print Debug info"
run: |
python --version
echo $env:USERPROFILE
echo $env:PATH
echo "$PWD"

- name: Upgrade pip
run: |
python -m pip install --upgrade pip

- name: Install Poetry
run: |
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -

- name: "Poetry: add to %PATH%"
run: |
echo "$env:USERPROFILE\.poetry\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: "Print Debug info"
run: |
echo $env:USERPROFILE
echo $env:PATH
echo "$PWD"
# Either of these should work.
echo "$env:APPDATA\pypoetry" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "$env:APPDATA\Python\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: "Poetry: print version"
run: |
poetry --version

- name: "Poetry: configure settings"
run: |
# https://github.com/python-poetry/poetry/issues/6098
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry config virtualenvs.prefer-active-python

- name: "Poetry: Install dependencies"
run: |
poetry run python --version
poetry install

- name: Run tests
Expand Down
Loading